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