| FileSystemClientUploadDirectory Method (String, String, Int32, Int32, Boolean, ProgressCallback) |
Uploads the files in the specified directory to the file system.
Namespace:
Ookii.Jumbo.Dfs.FileSystem
Assembly:
Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 2.0.0
Syntax public void UploadDirectory(
string localSourcePath,
string targetPath,
int blockSize,
int replicationFactor,
bool useLocalReplica,
ProgressCallback progressCallback
)
Public Sub UploadDirectory (
localSourcePath As String,
targetPath As String,
blockSize As Integer,
replicationFactor As Integer,
useLocalReplica As Boolean,
progressCallback As ProgressCallback
)
public:
void UploadDirectory(
String^ localSourcePath,
String^ targetPath,
int blockSize,
int replicationFactor,
bool useLocalReplica,
ProgressCallback^ progressCallback
)
member UploadDirectory :
localSourcePath : string *
targetPath : string *
blockSize : int *
replicationFactor : int *
useLocalReplica : bool *
progressCallback : ProgressCallback -> unit
Parameters
- localSourcePath
- Type: SystemString
The path of the directory on the local file system containing the files to upload. - targetPath
- Type: SystemString
The path of the directory on the file system where the files should be stored. This path must not
refer to an existing directory. - blockSize
- Type: SystemInt32
The block size of the file, or zero to use the file system default block size. This parameter will be ignored if the file system doesn't support blocks. - replicationFactor
- Type: SystemInt32
The number of replicas to create of the file's blocks, or zero to use the file system default replication factor. This parameter will be ignored if the file system doesn't support replication. - useLocalReplica
- Type: SystemBoolean
to put the first replica on the node that's creating the file if it's part of the DFS cluster; otherwise, . This parameter will be ignored if the file system doesn't support replica placement. - progressCallback
- Type: Ookii.Jumbo.DfsProgressCallback
The ProgressCallback that will be called to report progress of the operation. May be .
See Also