Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 207

Copy Folder Google Drive to Google Drive

by vnLoader - 01 November, 2024 - 08:54 AM
This post is by a banned member (vnLoader) - Unhide
vnLoader  
Premium Member
8
Posts
5
Threads
#1
(This post was last modified: 01 November, 2024 - 08:57 AM by vnLoader. Edited 1 time in total.)

Hidden Content
You must register or login to view this content.



This project helps you copy the entire contents of a folder on Google Drive to another folder on the same Google Drive or another Google Drive account.

Instructions for use

1. Requirements

Quote:Google Account.
Access to Google Drive API.
Google Colab (or IPython Notebook enabled environment).
2. Prepare

To run the source code, follow these steps:

1: Install Libraries: No need to install additional libraries beyond what is available in Google Colab.
2: Enter input information:

Quote:Destination Drive (dest_text): Enter the link to the folder on Google Drive you want to copy to.
Source Drive (source_text): Enter the link to the Google Drive folder you want to copy from.
From page (from_page): First page number to start copying. Set to 0 if no paging.
To page (to_page): Last page number to stop copying. Set to 0 if no paging.
Maximum capacity (max_download_size_text): Maximum capacity (GB) allowed to copy. The program will stop if the total capacity exceeds this value.
Exclude (exclude_str_text): Strings to remove from file or directory names during copying. Multiple strings can be separated by commas.

3. Run Source Code
Code:
 
destDriveLink = dest_text.value
sourceDriveLink = source_text.value
fromPage = int(from_page_text.value)
toPage = int(to_page_text.value)

downloader = DownloadFromDrive()
downloader._limit_size = float(max_download_size_text.value)
downloader.excluded_strings = [ext.strip() for ext in exclude_str_text.value.split(",") if ext.strip()]
downloader.copy_drive_to_drive(destDriveLink, sourceDriveLink, fromPage, toPage)

[Image: 464616981-1055363849380050-345026530060250378-n.jpg]
This post is by a banned member (Uganda6290) - Unhide
45
Posts
0
Threads
#2
Hio
This post is by a banned member (DFRGQS33) - Unhide
DFRGQS33  
Registered
25
Posts
0
Threads
#3
(01 November, 2024 - 08:54 AM)vnLoader Wrote: Show More
This project helps you copy the entire contents of a folder on Google Drive to another folder on the same Google Drive or another Google Drive account.

Instructions for use

1. Requirements

Quote:Google Account.
Access to Google Drive API.
Google Colab (or IPython Notebook enabled environment).
2. Prepare

To run the source code, follow these steps:

1: Install Libraries: No need to install additional libraries beyond what is available in Google Colab.
2: Enter input information:

Quote:Destination Drive (dest_text): Enter the link to the folder on Google Drive you want to copy to.
Source Drive (source_text): Enter the link to the Google Drive folder you want to copy from.
From page (from_page): First page number to start copying. Set to 0 if no paging.
To page (to_page): Last page number to stop copying. Set to 0 if no paging.
Maximum capacity (max_download_size_text): Maximum capacity (GB) allowed to copy. The program will stop if the total capacity exceeds this value.
Exclude (exclude_str_text): Strings to remove from file or directory names during copying. Multiple strings can be separated by commas.

3. Run Source Code
Code:
 
destDriveLink = dest_text.value
sourceDriveLink = source_text.value
fromPage = int(from_page_text.value)
toPage = int(to_page_text.value)

downloader = DownloadFromDrive()
downloader._limit_size = float(max_download_size_text.value)
downloader.excluded_strings = [ext.strip() for ext in exclude_str_text.value.split(",") if ext.strip()]
downloader.copy_drive_to_drive(destDriveLink, sourceDriveLink, fromPage, toPage)

[Image: 464616981-1055363849380050-345026530060250378-n.jpg]

fdg fd g [Image: PepeBlush.png] [Image: PepeBlush.png] [Image: PepeBlush.png] [Image: PepeBlush.png] [Image: PepeBlush.png]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)