moving files across devices
Matt Price
matt.price at utoronto.ca
Thu Oct 28 17:38:07 EDT 2004
Hi folks,
I'm trying to move files across devices on my linux box. Here's what
I had:
os.rename(sFileName, dir + newName)
which gives:
Traceback (most recent call last):
File "/usr/local/scripts/sort_mp3s.py", line 68, in ?
localSort(i, defaultSaveDir)
File "/usr/local/scripts/sort_mp3s.py", line 34, in localSort
os.rename(sFileName, dir + newName)
OSError: [Errno 18] Invalid cross-device link
ok, so that doesn't work. is there another method?
thx,
matt
-------------------------------------------
Matt Price matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------
please don't use the following addresses: zeus at derailleur.org
aardvark at derailleur.org
More information about the Python-list
mailing list