SCons User Guide 0.97 | ||
---|---|---|
<<< Previous | Platform-Independent File System Manipulation | Next >>> |
The Move factory allows you to rename a file or directory. For example, if we don't want to copy the temporary file, we could:
Command("file.out", "file.in", [ Copy("tempfile", "$SOURCE"), "modify tempfile", Move("$TARGET", "tempfile"), ]) |
Which would execute as:
% scons -Q Copy("tempfile", "file.in") modify tempfile Move("file.out", "tempfile") |
<<< Previous | Home | Next >>> |
Deleting Files or Directories: The Delete Factory | Up | Updating the Modification Time of a File: The Touch Factory |