Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How to update a Gdrive folder list Spreadsheet by inserting rows not appending?
Post Flair (click to view more posts with a particular flair)
Post Body

Hello everyone,

I have a spreadsheet that runs a script pulling in a Google Drive folder list. In the same sheet but into separate columns I'm manually adding relevant information for various rows which gets me to my questions:

(1) Can I get my Google Drive folder list script to pull in the folders in alphabetical order? (I'm right now sorting it via another script)

Script that pulls in my folder structure:

// Get Folder Tree function getFolderTree(folderId, listAll) { try { // Get folder by id var parentFolder = DriveApp.getFolderById(folderId);

// Initialise the sheet var file, data, sheet = SpreadsheetApp.getActiveSheet().getSheetByName('raw-data'); sheet.appendRow(["Full Path", "Name", "Date", "URL", "Last Updated", "Description", "Size"]);

// Get files and folders getChildFolders(parentFolder.getName(), parentFolder, data, sheet, listAll);

} catch (e) { Logger.log(e.toString()); } };

(2) How can the script that pulls in a Google drive folder list add new folders by inserting them between rows instead of appending them at the end? I want to make sure that my notes from the additional columns doesn't get mixed up with wrong rows once the folder structure is updated.

Any & all help is much appreciated!

Author
Account Strength
90%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,027
Link Karma
756
Comment Karma
221
Profile updated: 1 day ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago