Skip to content

Commit 88bac68

Browse files
committed
source and destination directory structure with files is updated and untreefy command is tested
1 parent 2bdb6a2 commit 88bac68

File tree

14 files changed

+112
-2
lines changed

14 files changed

+112
-2
lines changed

Activity/Commands/untreefy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
let fs = require("fs");
22
let path = require("path");
3-
var uniqid = require("uniqid");
3+
var uniqid = require('uniqid');
44

55
module.exports.untreefy = function(){
66
let src = arguments[0];
77
let dest = arguments[1];
88
let root = {};
9-
untreefyHandler(src, dest. root);
9+
untreefyHandler(src, dest, root);
1010

1111
fs.writeFileSync(`${dest}/metadata.json`, JSON.stringify(root));
1212
}

Activity/d1/d2/f2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f2.txt from directory d1/d2

Activity/d1/d3/d7/f7.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f7.txt from directory d1/d3/d7

Activity/d1/d3/f3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f3.txt from directory d1/d3

Activity/d1/d4/d8/f8.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f8.txt from directory d1/d4/d8

Activity/d1/d4/d9/f9.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f9.txt from directory d1/d4/d9

Activity/d1/f1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f1.txt from directory d1

Activity/xyz/17ms40d9hhbkapt24oh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f2.txt from directory d1/d2

Activity/xyz/17ms40d9hhbkapt24om

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f7.txt from directory d1/d3/d7

Activity/xyz/17ms40d9hhbkapt24on

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am file f3.txt from directory d1/d3

0 commit comments

Comments
 (0)