You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing request to %s%s https://api.pcloud.com/ file_open
Params: %s {'auth': '***, 'path': '/opt/software/db.sqlite3', 'flags': 64}
{'result': 2002, 'error': 'A component of parent directory does not exist.'}
so it looks like it is inverting src_path with dst_path.
My misunderstanding. It looks like that fs.base works on the same filesystem, while if you want to copy files/directories across filesystems, you need to use fs.copy
I'm trying to understand how to copy/upload a file using pyfilesystem2.
I have tried with the following:
but I'm always getting
even if
/backup/software/
already exists on pCloud.I have changed the
log.debug
to aprint
here and added a print forresp.json()
https://github.com/tomgross/pycloud/blob/31d9676446de3e417396e296dd4a95441983173e/src/pcloud/api.py#L55-L59
and this is what I'm getting back
so it looks like it is inverting
src_path
withdst_path
.I'm using fs==2.4.11 and the
copy
function as from what I understand is copying files from one filesystem to another:https://github.com/PyFilesystem/pyfilesystem2/blob/v2.4.11/fs/base.py#L401-L402
I'm trying to debug the issue but any help is appreciated.
The text was updated successfully, but these errors were encountered: