#include "las.h" #include "diskio.h"int c_dkmove (from, to, directories)
char *from char *to char directories[][CMLEN];
Specifies the path/name of the file to be moved.
Specifies the path/name of the output file.
Specifies a list of pathnames for directories to be searched for available space.
c_dkmove() moves disk files. It was written specifically to move disk files created by c_dkcre().
c_dkmove() uses the same algorithms to select a directory and allocate the file as c_dkcre(). From is moved and the file to becomes a symbolic link to the actual file. If from is a symbolic link, the file it points to is moved and the symbolic link to is updated to point at the new file.
c_dkmove() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> failure status
The caller must have write access to all specified directories.
A single file is not allowed to span multiple directories, file systems, or disk drives.
The size of the disk file that can be created with this function is limited to the precision of a long long integer (i.e., 263 bytes) or the size of the file system, whichever is smaller.