Save the folder named "going_modular" into google drive #800
Unanswered
NahedBahran
asked this question in
Q&A
Replies: 1 comment
-
I just added -r in the last line and it works with me import os Mount Google Drivedrive.mount('/content/drive') Create a folder in the root directory!mkdir -p "/content/drive/MyDrive/05project" Write a sample file to Google Drivewith open('/content/drive/My Drive/My Folder/sample.txt', 'w') as f:f.write('Hello, World!')save the file to output data folder!cp -r going_modular /content/drive/MyDrive/05project |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can any one help me in saving the folder "going_modular" to my google drive?
I used the following code but I after running it, the destination folder was empty!
import os
from google.colab import drive
Mount Google Drive
drive.mount('/content/drive')
Create a folder in the root directory
!mkdir -p "/content/drive/MyDrive/05project"
Write a sample file to Google Drive
with open('/content/drive/My Drive/My Folder/sample.txt', 'w') as f:
f.write('Hello, World!')
save pipe.pkl to output data folder
!cp going_modular /content/drive/MyDrive/05project
Beta Was this translation helpful? Give feedback.
All reactions