public interface IFileOperationManager extends Serializable
FileOperationManager.| Modifier and Type | Method and Description |
|---|---|
FileIOError |
copyDirRecursive(File aSourceDir,
File aTargetDir)
Copy a directory including all child objects.
|
FileIOError |
copyFile(File aSourceFile,
File aTargetFile)
Copies the source file to the target file.
|
FileIOError |
createDir(File aDir)
Create a new directory.
|
FileIOError |
createDirIfNotExisting(File aDir)
Create a new directory if it does not exist.
|
FileIOError |
createDirRecursive(File aDir)
Create a new directory.
|
FileIOError |
createDirRecursiveIfNotExisting(File aDir)
Create a new directory if it does not exist.
|
FileIOError |
deleteDir(File aDir)
Delete an existing directory.
|
FileIOError |
deleteDirIfExisting(File aDir)
Delete an existing directory if it is existing.
|
FileIOError |
deleteDirRecursive(File aDir)
Delete an existing directory including all child objects.
|
FileIOError |
deleteDirRecursiveIfExisting(File aDir)
Delete an existing directory including all child objects if it is existing.
|
FileIOError |
deleteFile(File aFile)
Delete an existing file.
|
FileIOError |
deleteFileIfExisting(File aFile)
Delete a file if it is existing.
|
FileIOError |
getLastError() |
EFileIOOperation |
getLastOperation() |
FileIOError |
renameDir(File aSourceDir,
File aTargetDir)
Rename a directory.
|
FileIOError |
renameFile(File aSourceFile,
File aTargetFile)
Rename a file.
|
@Nullable FileIOError getLastError()
null if no action
was yet performed.@Nullable EFileIOOperation getLastOperation()
null if no action was performed yet.@Nonnull FileIOError createDir(@Nonnull File aDir)
aDir - The directory to be created. May not be null.null error code.@Nonnull FileIOError createDirIfNotExisting(@Nonnull File aDir)
aDir - The directory to be created if it does not exist. May not be
null.null error code.@Nonnull FileIOError createDirRecursive(@Nonnull File aDir)
aDir - The directory to be created. May not be null.null error code.@Nonnull FileIOError createDirRecursiveIfNotExisting(@Nonnull File aDir)
aDir - The directory to be created if it does not exist. May not be
null.null error code.@Nonnull FileIOError deleteDir(@Nonnull File aDir)
aDir - The directory to be deleted. May not be null.null error code.@Nonnull FileIOError deleteDirIfExisting(@Nonnull File aDir)
aDir - The directory to be deleted. May not be null.null error code.@Nonnull FileIOError deleteDirRecursive(@Nonnull File aDir)
aDir - The directory to be deleted. May not be null.null error code.@Nonnull FileIOError deleteDirRecursiveIfExisting(@Nonnull File aDir)
aDir - The directory to be deleted. May not be null.null error code.@Nonnull FileIOError deleteFile(@Nonnull File aFile)
aFile - The file to be deleted. May not be null.null error code.@Nonnull FileIOError deleteFileIfExisting(@Nonnull File aFile)
aFile - The file to be deleted. May not be null.null error code.@Nonnull FileIOError renameDir(@Nonnull File aSourceDir, @Nonnull File aTargetDir)
aSourceDir - The original directory name. May not be null.aTargetDir - The destination directory name. May not be null.null error code.@Nonnull FileIOError renameFile(@Nonnull File aSourceFile, @Nonnull File aTargetFile)
aSourceFile - The original file name. May not be null.aTargetFile - The destination file name. May not be null.null error code.@Nonnull FileIOError copyDirRecursive(@Nonnull File aSourceDir, @Nonnull File aTargetDir)
aSourceDir - The source directory to be copied. May not be null.aTargetDir - The destination directory where to be copied. This directory may not
be existing. May not be null.null error code.@Nonnull FileIOError copyFile(@Nonnull File aSourceFile, @Nonnull File aTargetFile)
aSourceFile - The source file to use. May not be null. Needs to be an
existing file.aTargetFile - The destination files. May not be null and may not be
an existing file.null error code.Copyright © 2014–2020 Philip Helger. All rights reserved.