public final class RenameFileQuietlyExtensions extends Object
RenameFileQuietlyExtensions helps you to rename files or directories in a
quietly manner as the name let presume.| Constructor and Description |
|---|
RenameFileQuietlyExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
forceToMoveFileQuietly(File srcFile,
File destinationFile)
Moves the given source file to the given destination file.
|
static boolean |
renameFileQuietly(File fileToRename,
File newFileName,
boolean delete)
This method renames a given file.
|
static boolean |
renameFileQuietly(File fileToRename,
String newFileNameWithoutAbsolutPath)
This method renames a given file.
|
public static boolean forceToMoveFileQuietly(File srcFile, File destinationFile)
srcFile - The source file.destinationFile - The destination file.public static boolean renameFileQuietly(File fileToRename, File newFileName, boolean delete)
fileToRename - The file to rename.newFileName - The new name from the file.delete - If true an attempt to copy the content from the file to rename to the new file and
then delete the file to rename otherwise not.public static boolean renameFileQuietly(File fileToRename, String newFileNameWithoutAbsolutPath)
fileToRename - The file to rename.newFileNameWithoutAbsolutPath - The new name from the file.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.