Using file system as repository system provider
RepositoryFileSystem
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetFile | 1 | |
| LoadSourceEntryList | 3 | Load the file from a specific directory from the source parameter as the resource entry list. |
| LoadEntryList | 1 | 允许有重复的数据 |
| SourceCopy | 1 | Copy the file in the source list into the copyto directory, function returns the failed operation list. |
| GetMostAppreancePath | 1 | Gets a directory path which is most frequent appeared in the file list. |
03 Members
String, String, String())| Name | Type | Description |
|---|---|---|
DIR | String | - |
keyword | String | - |
ext | String() | 元素的排布是有顺序的 |
A list of file path which match with the keyword and the file extension name.
String, String(), Boolean)Load the file from a specific directory from the source parameter as the resource entry list.
[SearchOption.SearchAllSubDirectories,这个函数会扫描目标文件夹下面的所有文件。] 请注意,本方法是不能够产生具有相同的主文件名的数据的。假若目标GBK是使用本模块之中的方法保存或者导出来的, 则可以使用本方法生成Entry列表;(在返回的结果之中,KEY为文件名,没有拓展名,VALUE为文件的路径)
| Name | Type | Description |
|---|---|---|
source | String | The source directory which will be searchs for file. |
ext | String() | The list of the file extension. |
String, String())可以使用本方法生成Entry列表;(在返回的结果之中,KEY为文件名,没有拓展名,VALUE为文件的路径) 请注意,这个函数会搜索目标文件夹下面的所有的文件夹的
| Name | Type | Description |
|---|---|---|
source | String | - |
ext | String() | 文件类型的拓展名称 |
IEnumerable(Of String))Load the file from a specific directory from the source parameter as the resource entry list.
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of String) | - |
String, String())允许有重复的数据
| Name | Type | Description |
|---|---|---|
DIR | String | - |
exts | String() | - |
IEnumerable(Of String), String, Boolean)Copy the file in the source list into the copyto directory, function returns the failed operation list. (将不同来源source的文件复制到目标文件夹copyto之中)
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of String) | - |
copyto | String | - |
返回失败的文件列表
IEnumerable(Of String))Gets a directory path which is most frequent appeared in the file list.
| Name | Type | Description |
|---|---|---|
files | IEnumerable(Of String) | - |