We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f083b96 commit 6c67744Copy full SHA for 6c67744
src/superblocktxt.js
@@ -25,17 +25,17 @@ module.exports = (dirpath) => {
25
symLinks[lstat.dev][lstat.ino] = true
26
}
27
let mode = lstat.mode.toString(8);
28
- str += `\n${"\t".repeat(indent)}`
+ str += `${"\t".repeat(indent)}`
29
if (lstat.isDirectory()) {
30
- str += `${file}\t${mode}`;
+ str += `${file}\t${mode}\n`;
31
printTree(fpath, indent + 1);
32
} else {
33
- str += `${file}\t${mode}\t${lstat.size}\t${lstat.mtimeMs}`;
+ str += `${file}\t${mode}\t${lstat.size}\t${lstat.mtimeMs}\n`;
34
35
36
};
37
printTree(dirpath, 0);
38
- return str.trimStart() + '\n';
+ return str;
39
40
41
if (!module.parent) {
0 commit comments