ericyd / gdrive-copy Goto Github PK
View Code? Open in Web Editor NEWWeb app to copy a Google Drive folder
Home Page: https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec
License: MIT License
Web app to copy a Google Drive folder
Home Page: https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec
License: MIT License
A remarkable feature for GSuite subscribers is the ability to create Team Drives, while this drive can be shared to other Gmail accounts, it does not support moving folders into it. I was hoping this tool will be able to create copies of a folder inside a Team Drive.
I have a question
I want to uninstall both the addon and the extension of file copy as it was set up under the wrong email address/account.
However, I cannot find it to disable, uninstall or delete.
Ability to uninstall an addon or extension
see it and delete it
Bug
No
Error restarting script, trying again... | ||
---|---|---|
Empty JSON string | application (Copy Folder) | 824 |
Empty JSON string | application (Copy Folder) | 824 |
Empty JSON string | application (Copy Folder) | 824 |
Empty JSON string | application (Copy Folder) | 824 |
Empty JSON string | application (Copy Folder) | 824 |
Empty JSON string | application (Copy Folder) | 824 |
To continue copying files
No idea
Hello
I tried to copy a folder with almost 20.000 files on Google Drive, however the copy process stopped....so I resumed it using the Resume option and it correctly resumed....for like 10 minutes, then it stopped again.
Long story short:the resume feature works yes, but it keeps stopping over and over, for copying all the said files I had to resume the copy process roughly over 30 times.
While I think its surely better than nothing, a way to automatic resume an interrupted process would really makes this script perfect.
I'm wondering if I blocked something that is used used to install the app.
I tried using a different G Suite domain, and the app was installed just fine, no complaints.
Sadly, my error message is in Swedish. this little thing appears app the top of the browser window, and there is only an X-button for me to close it.
https://drive.google.com/file/d/1BrNuDpxfd3HNJBUJUm1WZp_hj9LjzeQz/view?usp=sharing
and after I click X, I get this.
https://drive.google.com/file/d/1qu3Hw9AsDLjMuLm2aTSWfGnc8CrX093E/view?usp=sharing
What could it be that I must allow, for the app to be allowed to be installed?
The Chrome extension itself I have allowed. Before that, I was immediately blocked from even trying to install.
When pasting the 'shared with me' folder link into the paste folder box sometimes it does not find the folder and just continues to spin. So far it has only happened with folders that have a substantial amount of data in them.
The alternative Select Folder option shows every folder in the drive which can be in the hundreds or thousands if the drive account is substantial.
Overall awesome project though. I have been searching for something like this for a while now. Thank you for creating it.
Love the concept of this script and it works really well. One thing I'd love to be able to do is set specific jobs up and put them on a schedule. Say if I'm going to backup x folder every week on Sunday I could set that up.
i tried copying a lot of files & subfolder by your copy a google drive folder apps but there are some errors so i can't copy them
when first trial, part of them copied successly and another them can't copied(and unfortunately i have no copy log i erased them). and then i tried sometimes, but now i can copied only subfolder except any files
i check that copy folder log, and there are some errors.
error code(?) : Error, GoogleJsonResponseException: User rate limit exceeded
plz help me
Bug
Paste an URL and the Finding Folder Icon comes up and spins for days
Usually, when I paste an URL the folder comes up really fast.
When I try to install Copy Folder or Transfer Ownership Apps I get a message about being unable to install the application because it conflicts with "Google Apps Script".
After reading this: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-apps/chSmO47guyI
I was able to find this in my Extensions directory, in a file called:
.../eoieeedlomnegifmaghhjnghhmcldobl/1.5_0/manifest.json
"web_url": "https://script.google.com/start"
This extension has a name of Google Apps Script and a description of "Create and edit scripts".
Chrome store page: https://chrome.google.com/webstore/detail/google-apps-script/eoieeedlomnegifmaghhjnghhmcldobl?utm_source=chrome-app-launcher-info-dialog
Maybe there is something you could tweak in your manifest to stop the conflict?
In any case the workaround of just using the "Visit Website" link from the store to kick off the application works fine, even if it is a little inconvenient.
Query: Is It Possible use your Copy Folder extension if I only have viewing access to a folder and its contents?
works fine if I have editing access or ownership of the folder
That a copy of the folder and its contents to which I only have viewing access
N/A
Hello
Today the Copy Folder script stopped working completely.
I've made a quick research and seems like it's happening on many, many Google Scripts, and it may be related to API functions from Web App.
Anyway,there's a proposed solution posted in this thread:
http://stackoverflow.com/questions/43273493/cannot-call-google-script-api-functions-from-web-app-typeerror-cannot-read-pro/43284867#43284867
It says to replace
<script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onApiLoad"></script>Into
<script type="text/javascript" src="https://www.google.com/jsapi"></script> <script>google.load("picker", "1", {callback:function(){pickerApiLoaded =!0}});</script>Hope it helps.
I think this is a bug since it says the app copies everything in a folder.
It will copy the folder and the documents but if there's a subfolder it doesn't copy the contents of the subfolder.
It would be amazing if I can just select to copy the main folders and it copies all subfolders and their documents....
The file names or folders wiht non english characters are not transferred correctly
no
á, é, ő, ü ... are changed for other charactrs
kepp this characters in names after copy.
Bug
Copied a folder containing doc, sheet and scripts in multiple subfolders
all folders copied, with copies of files from each of the source folders in the respective destination folders
Copy folder trees containing scripts.
They can still be manually copied at https://www.google.com/maps/d/ however.
Error/Bug
Every time copying is paused because of Google quota limits, it doesn't automatically resume. I have to start it again from the app.
The copy should automatically resume itself after 2 minutes,
Start a copy, then wait for the Google quota limit.
=> Bug
=> Upon first use, receiving a white screen citing a URL like:
https://script.google.com/a/macros/vroozi.com/s/AKm7uyo/exec
The white screen does not go anywhere and I cannot find any result of the script actions.
=> Selected folder is copied along with sub directories to the same directory as the source folder with the newly entered name
=> Create shared directory with sub-directories; attempt to copy this shared directory without changing any of the default permission/location options
Bug, probably.
Did an npm run build:prod
and uploaded dist files to Google Script, and deployed as web app.
the extension loads.
I can select a folder, etc, but when initiating the copy:
Tried a few permutations of the choices.
No additional help in the JS console.
Could you please check whether this file structure is correct?
When the status of a file (in the copy log) is "Error, GoogleJsonResponseException: User rate limit exceeded," the file does not get copied.
Hi Eric,
Thanks for a great utility that has saved me lots of time and effort in managing my Google Drive!
Are you planning on adding any support for the new Google Team Drives? Currently the script can only access folders in your My Drive section and does not even display the Team Drives section, so folder structures there have to be created manually :(
Werner
It also will not let me sign in under another account?
trying to fix an error, this appears in the copy log- how do I fix this error? Error: This file cannot be copied by the authenticated user.. File: application (Copy Folder). Line: 506
not really
maps do not copy
maps copy
copy a folder with a map in it
Error / Bug?
Error: There was an error initializing the copy folder request.
Error message: Exception: The feature you are attempting to use has been disabled by your domain administrator..
Please try again. Make sure you have correct permissions to copy this folder, and make sure you are using Google Chrome or Chromium when using this app.
Copy a folder in the desition account
Note the file to be copied is in the MY Drive Folder (added already).
The App is started / initiated from the APP Window in Chrome not in the Drive feature. (could not add it here). If this is the case, what would be the admin minimum requirements for the G Suite Admin to be enabled?! Less secure apps are currently enabled for all users!
GDrive now allows for copying with comments, and even suggestions:
I had a quick look at the API, and unfortunately that feature is not directly exposed:
https://developers.google.com/drive/v3/reference/files/copy
It can be done though. Other Chrome extensions do exactly that (but don't deep copy like this script).
https://webapps.stackexchange.com/questions/47732/google-apps-script-copy-document-comments
I cannot find any folders.Something wrong with this script.Please fix this script.Thanks very much!
It would make this app 100x better if these features were available:
reporting a bug
new bug
Bug?
"Error, GoogleJsonResponseException: User rate limit exceeded"
Copy folders
Copying large folder seems to stop after a short time.
http://i.imgur.com/njFgg6s.png
The script is stuck in a loop, making copies of the same documents over and over again.
How do you stop script before it is done?
Hello
I've been trying to copy 2 folders recently, each one having over 1000 files, I tried to copy both folders separately, but for both of them it only copied exactly 460 files, not one more.
I double checked both folders to be sure and they both have above 1500 files each.
The copy folder log reports operation as "Complete" and no errors are reported.
Reporting a bug
Copy folder is locked to my private gmail account. When I try to change accounts to view my work google drive, it switches back to my private account.
Work google drive should be the default account.
You should be able to switch between different accounts.
Operating System: Windows 8.1 Pro, 64-bit
Browser: Google Chrome version 58.0.3029.96 (64-bit)
With this script it is allowed to copy the TeamDrive folder to My Drive, but it has errors when copying many files.
http://techawakening.org/copy-folder-structure-contents-in-google-drive/2846/
Maybe this script helps your script copy from TeamDrive, too.
Thnks and advance.
I just started using the app today and successfully used it twice this morning, including one folder that was very large (over 2000 total files). However, when I try to start a new folder now, once I click "copy folder," it goes to a blank screen and doesn't start the copy (I checked my Drive to see if the new folder had been created and it was working in the background). I also tried using "Resume" to see if a previous copy was actually still in progress, but when I click "Resume copying," the same thing happens with the blank screen
error display character utf8
here
line 56 ,57 ,58 different
Hi @ericyd very nice add-on 👍
I followed the steps and gave permissions, after sharing the folders but I get an error, do you have any updates or idea on how to fix this
Error: There was an error initializing the copy folder request.
Error message: Exception: No item with the given ID could be found, or you do not have permission to access it..
Please try again. Make sure you have correct permissions to copy this folder, and make sure you are using Google Chrome or Chromium when using this app.
why is this error coming?
Bug
I didn't see one.
Each time I copy a folder containing a google form and the response spreadsheet, a "Copy of [form file name]" is left in the source folder
Changes made in the source folder
Copy a folder containing a google form and the response spreadsheet
Enquiring
When first accessing the application it says
The application "Copy Folder" needs authorization to run.
In the popup, in the top-right corner I select my second Google account, then click Allow. Unfortunately, the application keeps saying
The application "Copy Folder" needs authorization to run.
If I select my first Google account, the error message disappears and I can start using the application. However, my first Google account is a personal one. I need to use the application with my work account.
Is there a workaround?
I added this as a Chrome extension on to my Vivaldi browser, and now, for the life of me, I can't figure out how to remove. It doesn't have options to delete like all my other extensions.
That's the major issue, but the issue that's driven me to want to do this is that the extension is causing all of my Google platforms to display in funky manners since installing. It's a drag.
Reporting a bug
I follow the instructions, making sure "Copy Sharing Permissions" is set to No. I proceed. When I go look at the copy, all of the sharing permissions are still the same. The whole reason I wanted this app was so I could bulk copy and remove all the sharing permissions.
That it would do as it has stated and NOT copy the sharing permissions when it is set to NO.
I am not doing anything outside of following the on screen form prompts.
This will not stop, I need this to stop copying the folder and sending to my sales rep. in his google drive
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.