Crossfire JXClient, Trunk
Classes | Static Public Member Functions | Static Package Functions | List of all members
Copy Class Reference
Collaboration diagram for Copy:
Collaboration graph

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 ()
 

Detailed Description

Sample code that copies files in a similar manner to the cp(1) program.

Definition at line 52 of file Copy.java.

Member Function Documentation

◆ copyFile()

static void Copy.copyFile ( Path  source,
Path  target,
boolean  prompt,
boolean  preserve 
)
staticpackage

Copy source file to target location. If

is true then prompt user to overwrite target if it exists. The

preserve

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

static void Copy.main ( String[]  args) throws IOException
static

Definition at line 154 of file Copy.java.

References copyFile(), prompt, and usage().

Here is the call graph for this function:

◆ okayToOverwrite()

static boolean Copy.okayToOverwrite ( Path  file)
staticpackage

Returns

true

if okay to overwrite a file ("cp -i")

Definition at line 57 of file Copy.java.

References file.

Referenced by copyFile().

Here is the caller graph for this function:

◆ usage()

static void Copy.usage ( )
staticpackage

Definition at line 148 of file Copy.java.

Referenced by main().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:
prompt
where< script-file-path > is the path of your script file to load If you don t specify the file then the load function shows file dialog box to choose the script file to load How do I get help on script global functions If you use then there is a global function called help that prints one line help messages on global functions In script console prompt
Definition: README.txt:57