move: normalise_paths

This commit is contained in:
zztkm 2022-07-26 02:04:06 +09:00
parent 8d4d4ceec4
commit a3d71455d4

6
vss.v
View file

@ -26,12 +26,6 @@ fn main() {
app.parse(os.args) app.parse(os.args)
} }
fn normalise_paths(paths []string) []string {
mut res := paths.map(it.replace(os.path_separator, '/'))
res.sort()
return res
}
fn get_paths(path string) []string { fn get_paths(path string) []string {
mds := os.walk_ext(path, '.md') mds := os.walk_ext(path, '.md')
return mds return mds