Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b9fefc7c95 | |||
76eae15f7d |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartfile",
|
||||
"version": "8.0.3",
|
||||
"version": "8.0.4",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@pushrocks/smartfile",
|
||||
"private": false,
|
||||
"version": "8.0.3",
|
||||
"version": "8.0.4",
|
||||
"description": "offers smart ways to work with files in nodejs",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
|
@ -10,6 +10,7 @@ export class VirtualDirectory {
|
||||
public static async fromFsDirPath(pathArg: string) {
|
||||
const newVirtualDir = new VirtualDirectory();
|
||||
newVirtualDir.addSmartfiles(await fs.fileTreeToObject(pathArg, '**/*'));
|
||||
return newVirtualDir;
|
||||
}
|
||||
|
||||
constructor() {}
|
||||
|
Reference in New Issue
Block a user