Crossfire JXClient, Trunk
|
Classes | |
class | TreeCopier |
Static Public Member Functions | |
static void | main (String[] args) throws IOException |
Static Package Functions | |
static void | copyFile (Path source, Path target, boolean prompt, boolean preserve) |
static boolean | okayToOverwrite (Path file) |
static void | usage () |
Sample code that copies files in a similar manner to the cp(1) program.
|
staticpackage |
Copy source file to target location. If
is true then prompt user to overwrite target if it exists. The
parameter determines if file attributes should be copied/preserved.
Definition at line 67 of file Copy.java.
References okayToOverwrite(), and prompt.
Referenced by main(), and Copy.TreeCopier.visitFile().
|
static |
Definition at line 154 of file Copy.java.
References copyFile(), prompt, and usage().
|
staticpackage |
Returns
if okay to overwrite a file ("cp -i")
Definition at line 57 of file Copy.java.
References file.
Referenced by copyFile().
|
staticpackage |