H
Hong Jiang
Hi,
Is there an efficient way to implement the 'mv' command? I mean not by
calling external commands.
Moving a file can be done by first making a hard link then unlinking the
original file. But I cannot figure out a good way to move a directory.
Do I have to move all the files and subdirectories recursively?
Thanks.
Is there an efficient way to implement the 'mv' command? I mean not by
calling external commands.
Moving a file can be done by first making a hard link then unlinking the
original file. But I cannot figure out a good way to move a directory.
Do I have to move all the files and subdirectories recursively?
Thanks.