Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shuntil.copyfile help
#5
yeah I get this error:
Traceback (most recent call last):
File "CopySlides.py", line 14, in <module>
shutil.copyfile(dst, file)
File "C:\Users\mcesm\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 238, in copyfile
if _samefile(src, dst):
File "C:\Users\mcesm\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 217, in _samefile
return os.path.samefile(src, dst)
File "C:\Users\mcesm\AppData\Local\Programs\Python\Python38\lib\genericpath.py", line 100, in samefile
s1 = os.stat(f1)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not builtin_function_or_method

when i run the code with #shutil.copyfile(dst, file) (out of the code) it prints everything with no errors
Reply


Messages In This Thread
Shuntil.copyfile help - by mcesmcsc - Dec-20-2019, 05:14 PM
RE: Shuntil.copyfile help - by micseydel - Dec-20-2019, 05:39 PM
RE: Shuntil.copyfile help - by mcesmcsc - Dec-20-2019, 05:43 PM
RE: Shuntil.copyfile help - by micseydel - Dec-20-2019, 05:49 PM
RE: Shuntil.copyfile help - by mcesmcsc - Dec-20-2019, 05:57 PM
RE: Shuntil.copyfile help - by snippsat - Dec-20-2019, 06:47 PM
RE: Shuntil.copyfile help - by mcesmcsc - Dec-20-2019, 07:57 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020