A virtual filesystem tree
FileSystemTree
01 Syntax
Microsoft.VisualBasic.ApplicationServices.FileSystemTree
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetFile | 2 | common shared method for get node by path |
| AddFile | 1 | add a new filesystem node and then returns the new node object. |
| ToString | 1 | absolute full path |
| DeleteFile | 1 |
03 Properties
04 Members
GetFile(
String)Get a node by its key name in current tree node
Parameters
| Name | Type | Description |
|---|---|---|
name | String | the file node name in current tree node |
Returns
returns nothing if the file with given name was could not be found
GetFile(FileSystemTree,
String)common shared method for get node by path
Parameters
| Name | Type | Description |
|---|---|---|
fs | FileSystemTree | - |
path | String | - |
Returns
this function returns nothing if the path not found.
AddFile(
String)add a new filesystem node and then returns the new node object.
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
ToString
absolute full path
Returns
the value of FileSystemTree.FullName property data
DeleteFile(FileSystemTree,
String)Parameters
| Name | Type | Description |
|---|---|---|
fs | FileSystemTree | - |
path | String | - |
Returns
this function returns nothing if the required node has not been found, and returns the node which has been deleted.
Name
the filename/folder name of this filesystem tree node
Parent
the parent folder
data
the tagged data that associated with this file node
FullName
absolute full path