Class File
java.lang.Object
com.suse.salt.netapi.calls.modules.File
Basic operations on files and directories on minions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the mode of a fileChown a fileCopy a file or directory from src to dstdirectoryExists(String path) Tests to see if path is a valid directoryfileExists(String path) Tests to see if path is a valid fileGet the hash sum of a fileGet the hash sum of a fileGet the hash sum of a fileReturn the mode of a fileReturn the id of the user that owns a given fileReturn the user that owns a given fileCheck if the path is a symbolic linkEnsures that a directory is availableEnsures that a directory is availableEnsures that a directory is availableEnsures that a directory is availablestatic LocalCall<File.Result> Move a file or directory from src to dstReturns a list containing the contents of a directoryRemove a fileRemoves the specified directoryCreate a symbolic link (symlink, soft link) to a file
-
Constructor Details
-
File
private File()
-
-
Method Details
-
chown
-
chmod
-
copy
public static LocalCall<Boolean> copy(String src, String dst, boolean recurse, boolean removeExisting) Copy a file or directory from src to dst- Parameters:
src- File or directory to copydst- Destination pathrecurse- Recurse flagremoveExisting- If true, all files in the target directory are removed, and then the files are copied from the source- Returns:
- The
LocalCallobject to make the call
-
move
Move a file or directory from src to dst- Parameters:
src- File or directory to copydst- Destination path- Returns:
- The
LocalCallobject to make the call
-
remove
-
getHash
-
getHash
-
getHash
-
getHash
-
directoryExists
-
fileExists
-
getMode
-
getUid
-
getUser
-
mkdir
-
mkdir
-
mkdir
-
mkdir
-
mkdir
-
readdir
-
rmdir
-
isLink
-
symlink
-