PING  0.9
Statistical data handling and processing in production environment
file_move

Rename/move a file (or a directory) to another location.

%file_move(ifn, ofn=, idir=, odir=);

Arguments

  • ifn : name or full path of an input file;
  • idir : (option) input directory where the input file is located; if not passed, the location is derived from ifn.

Returns

  • ofn : (option) new location/name of the file; if empty, the renaming of the file uses the timestamp;
  • odir : (option) output directory where the file will be moved; if empty, odir is set to idir.

Examples

Run macro %_example_file_move for examples.

See also

%file_check, %file_name.