public interface SupportsCopy
Modifier and Type | Method and Description |
---|---|
Path |
copy(Path path,
String newName,
Path targetDirectory,
String comment)
Copies a file or directory to a specific target directory, with a new name.
|
Path |
copy(Path path,
String newName,
String comment)
Copies a file or directory to the same parent directory, with a new name.
|
Path copy(Path path, String newName, String comment)
path
- Original file or directorynewName
- Name of the new file or directorycomment
- Comment for the copy operationPath copy(Path path, String newName, Path targetDirectory, String comment)
path
- Original file or directorynewName
- Name of the new file or directorytargetDirectory
- Directory in which the new file will be writtencomment
- Comment for the copy operationCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.