updating oE move_file


include filesys.e 
namespace filesys 
public function move_file(sequence src, sequence dest, integer overwrite = 0) 

moves a file to another location.

  1. src : a sequence, the name of the file or directory to move
  2. dest : a sequence, the new location for the file
  3. overwrite : an integer, 0 (the default) to prevent overwriting an existing destination file, 1 to overwrite existing destination file

An integer, 0 on failure, 1 on success.


If overwrite was requested but the move fails, any existing destination file is preserved.

See Also:

rename_file, copy_file

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu