implementing mv

Hong Jiang hong.jiang at acm.org
Wed Dec 24 09:52:16 CET 2003


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.





More information about the Python-list mailing list