Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
72 views
in Technique[技术] by (71.8m points)

Python cannot make changes to the files saved in the Google Drive File Stream

I am going to using Python to rename some files that are saved in the local Google Drive File Stream. The os.listdir can find all the files in a given folder. But os.rename cannot be performed, because of the error:

"FileNotFoundError: [WinError 3] The system cannot find the path specified: 'G:\.shortcut-targets-by-id\17HXYw7EIOuzCUdeM0QulV-aWGAuZug6s\....'.

The file actually exists. This is a false alarming.

I also tried doing the same thing in Matlab, and got a similar error "Cannot find the specified file:....".

Is there any solution to achieve this, without moving the files in the google file stream to a local folder?

question from:https://stackoverflow.com/questions/65856391/python-cannot-make-changes-to-the-files-saved-in-the-google-drive-file-stream

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...