a data folder
StreamGroup
01 Syntax
Microsoft.VisualBasic.DataStorage.HDSPack.FileSystem.StreamGroup
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | create a new file tree |
| GetDataBlock | 1 | get file |
| AddDataBlock | 1 | Create a new file block on the fs tree |
| VisitBlock | 1 | get file or directory |
| BlockExists | 1 | check file exists in current tree? |
| FilePath | 1 | |
| hasName | 1 | |
| DeleteNode | 1 | |
| GetDataGroup | 1 | |
| GetObject | 1 | |
| AddDataGroup | 1 | |
| ToString | 1 | |
| CreateRootTree | 1 |
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| tree | 1 | indexed by FilePath.FileName |
05 Members
#ctor(
String)create a new file tree
Parameters
| Name | Type | Description |
|---|---|---|
directory | String | the folder directory path |
#ctor(
IEnumerable(Of String))create a new file tree
Parameters
| Name | Type | Description |
|---|---|---|
dirs | IEnumerable(Of String) | - |
GetDataBlock(
FilePath)get file
Parameters
| Name | Type | Description |
|---|---|---|
filepath | FilePath | - |
AddDataBlock(
FilePath)Create a new file block on the fs tree
Parameters
| Name | Type | Description |
|---|---|---|
filepath | FilePath | - |
Returns
A file block object with blank allocation data, no postion and no data size, just with the file path reference data
VisitBlock(
FilePath, Boolean)get file or directory
Parameters
| Name | Type | Description |
|---|---|---|
filepath | FilePath | - |
checkExists | Boolean | just check the file is exists or not, do not throw any exception |
Returns
returns nothing if object not found!
BlockExists(
FilePath)check file exists in current tree?
Parameters
| Name | Type | Description |
|---|---|---|
filepath | FilePath | should be a path data which is relative to current file tree node. |
totalSize
get total data size in current folder
files
get all file + dirs list in current dir root
tree
indexed by FilePath.FileName
dirs
FilePath(
String)hasName(
String)DeleteNode(
String)GetDataGroup(
FilePath)GetObject(
FilePath, Boolean)AddDataGroup(
FilePath)ToString()
CreateRootTree()