i've been working on a program for a couple of days now, and i'm stuck on a error since last night. I've already looked over other questions here but none seem to work. I'm moving files from 1 drive to another using shutil, and in the beginning it worked, but now it starts saying this error :
EDIT: Just noticed that it does in fact move the files, and after that it gives me the error
Traceback (most recent call last):
File "C:\Users\DC\Desktop\Prototype\Prototype", line 9, in <module>
shutil.move(src, dst)
File "C:\Python27\lib\shutil.py", line 300, in move
rmtree(src)
File "C:\Python27\lib\shutil.py", line 256, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "C:\Python27\lib\shutil.py", line 254, in rmtree
os.rmdir(path)
WindowsError: [Error 5] Access is denied: 'E:'
And here's my code snippet.
import os
import time
time = time.strftime("%H%M%S")
src = "E:"
dst = "C:\Users\DC\Desktop\Data_" + str(time)
import shutil
shutil.move(src, dst)
print 'Done'