Open anugrahjo opened 1 year ago
Interesting, I was getting this error yesterday when trying to use the copy_folder
driver:
ERROR: Error executing driver CopyFolderDriver for collection foo_bar. 'ignore'
I wonder if it is related. My source
and target
directory definitely exists as configured in my collections
dictionary in conf.py.
Did you get a similar logger warning when trying to run the copy_folder
driver?
Also,
With the copy_file
driver I experienced something the other day where it created a directory in the target
location instead of copying my file.
@anugrahjo
Have you been able to get copy_file
and/or copy_folder
driver to work without ignore
?
Interesting, I was getting this error yesterday when trying to use the
copy_folder
driver:ERROR: Error executing driver CopyFolderDriver for collection foo_bar. 'ignore'
I wonder if it is related. My
source
andtarget
directory definitely exists as configured in mycollections
dictionary in conf.py.Did you get a similar logger warning when trying to run the
copy_folder
driver?
No, I did not.
Have you been able to get
copy_file
and/orcopy_folder
driver to work withoutignore
?
No I think it always requires ignore
. I give an empty list []
if I don't want to ignore any files.
'ignore' does not work for
copy
andcopy_folder
drivers.ignore=ignore_patterns()
is a kwarg forcopytree()
but is provided as a non-keyworded argument incopy
andcopy_folder
drivers. Just adding the keywordignore=
will fix the issue. I see thatcopy
driver is removed and this issue is also fixed in the github repo but not on PyPI released version. Is it possible to release the latest version onmaster
branch to PyPI?