You have Javascript disabled. While you will be able to browse this site without Javascript, some functionality on this site will not work without it. We strongly recommend enabling Javascript in your browser. This site uses cookies and collects data about visitor behavior for improving user experience, identifying returning visitors, and providing personalized offers. Your continued use of this site indicates your consent to this. See Privacy Policy for details or if you wish to disable cookies.

Your browser does not allow this site to store cookies and other data. Some functionality on this site may not work without them. See Privacy Policy for details on how we would use cookies.

This site uses cookies and collects data about visitor interaction for improving user experience, identifying returning visitors, and providing personalized offers. Your continued use of this site indicates your consent to this. See Privacy Policy for details or if you wish to disable cookies.

move

Moves the directory and its contents recursively. This method overrides the default method File.move(Location) and copies this directory and its contents to the destination location, after which the original directory and its contents are removed. After the method returns, the directory represented by this object is removed and no further operations should be invoked on this object.

move

Moves the directory and its contents recursively using the specified policy. This method moves this directory this directory and its contents to the destination location, after which the original directory and its contents are removed. After the method returns, the directory represented by this object is removed and no further operations should be invoked on this object.

Parameters:

dst - the location to move this directory to

policy - the policy to use to decide which files to copy and remove, and to notify about errors

Returns:

a Directory object representing the newly created directory where this directory was moved

move

Moves the directory and its contents recursively using the specified policy and progresslistener factory. This method moves this directory this directory and its contents to the destination location, after which the original directory and its contents are removed. After the method returns, the directory represented by this object is removed and no further operations should be invoked on this object.

Parameters:

dst - the location to move this directory to

policy - the policy to use to decide which files to copy and remove, and to notify about errors

factory - a progresslistener factory for tracking the progress of individual file copyings

Returns:

a Directory object representing the newly created directory where this directory was moved

traverse

Traverses the directory and its contents recursively. The order of the traversal is unspecified, and multiple entries may even be traversed concurrently. The given policy is used to relay information about the traversed files and to determine where the traversal should proceed.

mode - the mode to use when applying the permissions. Possible values are SshSftSetstatMode.SSH_SFT_SETSTAT_MODE_OCTAL for setting the permissions verbatim, SshSftSetstatMode.SSH_SFT_SETSTAT_MODE_ADD for combining the new permissions with the existing ones with a bitwise OR operation, and SshSftSetstatMode.SSH_SFT_SETSTAT_MODE_SUB for a bitwise AND NOT operation.