I apologize if my question sounds silly but I just started using this library and can't find the answer to my question.
I'm trying to copy a file from my disk system to a memory file system:
mem_fs = fs.open_fs('mem://')
zip_path = 'C:\\project\\test.zip"
fs.copy.copy_file('/', zip_path.format(os.getcwd()), mem_fs, 'test.zip')
I have the following exception: fs.errors.InvalidCharsInPath because the path contains ":" and "\". If I replace all these "invalid" characters with "/" the resource can't be found.
The OS: Win7.
How can this issue be solved? And what is the cross-platform solution (I will run my app on Linux too)?
Thanks!
I apologize if my question sounds silly but I just started using this library and can't find the answer to my question.
I'm trying to copy a file from my disk system to a memory file system:
I have the following exception: fs.errors.InvalidCharsInPath because the path contains ":" and "\". If I replace all these "invalid" characters with "/" the resource can't be found.
The OS: Win7.
How can this issue be solved? And what is the cross-platform solution (I will run my app on Linux too)?
Thanks!