Just tested the following code
function Test() {
DocsList.createFolder('Folder1').createFolder('Subfolder1').createFile('File1', 'Empty');
}
It works as expected, i.e. created a new File1
document in newly created folder My Drive\Folder1\Subfolder1
.
More Related Contents:
- How to automatically import data from uploaded CSV or XLS file into Google Sheets
- Easiest way to get file ID from URL on Google Apps Script
- Creating anchored comments programmatically in Google Docs
- Transfer ownership of a file to another user in Google Apps Script
- Google app scripts: email a spreadsheet as excel
- How to use ContinuationToken with recursive folder iterator
- Moving Files In Google Drive Using Google Script
- Correct usage of DriveApp.continueFileIterator(continuationToken)
- File movement between Google Shared Drive (team drive) folders using Apps Script
- Copying a spreadsheet copies all linked files as well
- Permanently delete file from google drive
- Initiate a download from google apps script
- How to convert a Google Sheets-File to an Excel-File (XLSX)
- Google script replaceAllShapesWithImage with image from drive doesn”t work any more
- Script to convert .XLSX to Google Sheet and move converted file
- In Google Apps Script, how would I get all subfolders and all subsubfolders and all subsubsub folders etc.?
- Creating a zip file inside Google Drive with Apps Script
- Converting .xls to google spreadsheet in google apps script
- publish a Google Spreadsheet through Google Apps Scripts
- Accessing shared drive with DriveApp
- google script openById : You do not have permission to perform that action
- Convert a gdoc into image
- Download file from Google Drive to local folder from Google Apps Script
- Is there a way to evaluate a formula that is stored in a cell?
- How to auto select range from a filter without having to manually enter it?
- Sheet.getRange(1,1,1,12) what does the numbers in bracket specify?
- How to merge the two cells of a table in a Google text Document without this weird result?
- email notification if cell is changed
- Stackdriver Logging API returns response code 200, but response is empty
- How can I find the Event Id of my Google Calendar event?