public class FileCopy
extends java.lang.Object
Constructor and Description |
---|
FileCopy() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copyFile(java.lang.String fromFileName,
java.lang.String toFileName)
Copies a file preferring win copy style.
|
static boolean |
copyFile(java.lang.String fromFileName,
java.lang.String toFileName,
boolean useWinCopyIfPossible)
Copies a file.
|
public static boolean copyFile(java.lang.String fromFileName, java.lang.String toFileName)
fromFileName
- the name of the file to copytoFileName
- the name of the copypublic static boolean copyFile(java.lang.String fromFileName, java.lang.String toFileName, boolean useWinCopyIfPossible)
fromFileName
- the name of the file to copytoFileName
- the name of the copyuseWinCopyIfPossible
- whether win copy is preferred (keeping windows attributes)Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de