We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is great, doit allows using pathlib.
Things like these are simple and easy:
import shutil from pathlib import Path src = Path("input/file.txt") out = Path("output/file.txt") res = shutil.copy(src, out)
The only problem is, that (with python 3.6) the res is of the same value as out and following action fails:
out
{ "actions": [ (shutil.copy, [src, out]), ], }
because value of type pathlib.PosixPath is not considered a sign of success.
There is a workaround (shutil.copy, [src, str(out)]) but as doit already acounts for use of pathlib, why not accept such values as sign of success.
(shutil.copy, [src, str(out)])
doit
The text was updated successfully, but these errors were encountered:
makes sense. just needs a patch 😁
Sorry, something went wrong.
No branches or pull requests
It is great, doit allows using pathlib.
Things like these are simple and easy:
The only problem is, that (with python 3.6) the res is of the same value as
out
and following action fails:because value of type pathlib.PosixPath is not considered a sign of success.
There is a workaround
(shutil.copy, [src, str(out)])
but asdoit
already acounts for use of pathlib, why not accept such values as sign of success.The text was updated successfully, but these errors were encountered: