13
14
15
16
17
18
19
20
21
|
# File 'lib/fewer/serializer.rb', line 13
def encode(root, paths)
files = ls(root)
delimeter = files.length > 36 ? ',' : ''
paths.map { |path|
index = files.index(path)
index ? index.to_s(36) : nil
}.compact.join(delimeter)
end
|