example:
const files = klawSync(os.homedir()+'/Documents', {nodir: true, depthLimit: 0});
with above line i get the file and directory names. But dir names are just truncated file path in children.
result-> file.txt, dirname, dirname2
directory names are actually pointing to the files in child directories but truncated.
i.e -> dirname/file-in-child.txt
example:
const files = klawSync(os.homedir()+'/Documents', {nodir: true, depthLimit: 0});with above line i get the file and directory names. But dir names are just truncated file path in children.
result->
file.txt, dirname, dirname2directory names are actually pointing to the files in child directories but truncated.
i.e ->
dirname/file-in-child.txt