Oct-29-2019, 06:01 PM
(Oct-29-2019, 02:59 PM)Gribouillis Wrote: print(os.listdir(documents))
Directly from the IDE:
['desktop.ini', 'My Music', 'My Pictures', 'My Videos']Strange thing to happen, because Documents is empty, even when I enable hidden folders, it's empty.
copytree
only successfully copies the .ini
file. I guess the solution is to use ignore_patterns
, check to see if the Documents folder is the item we're working with, and ignore those folders.