Apps script download file






















Adds the given user to the list of editors for the Folder. Adds the given array of users to the list of editors for the Folder. Adds the given user to the list of viewers for the Folder. Adds the given array of users to the list of viewers for the Folder. Creates a file in the current folder from a given Blob of arbitrary data.

Gets the date the Folder was created. Gets the description for the Folder. Gets the list of editors for this Folder. Gets a collection of all files that are children of the current folder and have the given MIME type. Gets a collection of all folders that are children of the current folder and have the given name. Gets the ID of the Folder. Gets the date the Folder was last updated. Gets the name of the Folder.

Gets the owner of the Folder. Gets a collection of folders that are immediate parents of the Folder. Gets the resource key of the Folder that is required to access items that have been shared using a link. Gets whether this Folder is eligible to apply the security update that requires a resource key for access when it's shared using a link. Gets whether this Folder requires a resource key for access when it's shared using a link.

Gets which class of users can access the Folder , besides any individual users who have been explicitly given access. Gets the permission granted to those users who can access the Folder , besides any individual users who have been explicitly given access.

Gets the number of bytes used to store the Folder in Drive. Gets the list of viewers and commenters for this Folder. Determines whether users with edit permissions to the Folder are allowed to share with other users or change the permissions. Determines whether the Folder has been starred in the user's Drive. Determines whether the Folder is in the trash of the user's Drive.

Removes the given user from the list of editors for the Folder. Removes the given user from the list of viewers and commenters for the Folder. Revokes the access to the Folder granted to the given user. Gets a collection of all files that are children of the current folder and match the given search criteria. Gets a collection of all folders that are children of the current folder and match the given search criteria.

Sets the description for the Folder. Sets the name of the Folder. Changes the owner of the Folder. Sets whether the Folder requires a resource key for access when it's shared using a link. Sets whether users with edit permissions to the Folder are allowed to share with other users or change the permissions. Sets which class of users can access the Folder and what permissions those users are granted, besides any individual users who have been explicitly given access.

Sets whether the Folder is starred in the user's Drive. Sets whether the Folder is in the trash of the user's Drive. FolderIterator — a collection of folders that are immediate parents of the File. Gets the resource key of the File that is required to access items that have been shared using a link.

String — The resource key of the File. Gets whether this File is eligible to apply the security update that requires a resource key for access when it's shared using a link. Drive requires a resource key to access some files or folders that have been shared using a link. This change is part of a security update.

The update is turned on by default for eligible files and folders. To turn the resource key requirement on or off for eligible files, use setSecurityUpdateEnabled.

Learn more about the Security update for Google Drive. Boolean — Whether the resource key requirement can be applied for the File. Gets whether this File requires a resource key for access when it's shared using a link. This requirement is turned on by default for eligible files and folders. Boolean — Whether the resource key requirement is enabled for this File.

Gets which class of users can access the File , besides any individual users who have been explicitly given access. Access — which class of users can access the File. Gets the permission granted to those users who can access the File , besides any individual users who have been explicitly given access. Permission — the permissions granted to users who can access the File. Gets the number of bytes used to store the File in Drive.

Note that Google Workspace application files do not count toward Drive storage limits and thus return 0 bytes. Integer — the number of bytes used to store the File in Drive. If the file is a shortcut, returns the resource key of the item it points to. Resource keys are an additional parameter which need to be passed to access files that have been shared using a link. String — The target item's resource key or null if the file is not a shortcut.

Gets a thumbnail image for the file, or null if no thumbnail exists. Blob — The thumbnail image for the file. Gets the list of viewers and commenters for this File. User[] — An array of users with view or comment permission. Determines whether users with edit permissions to the File are allowed to share with other users or change the permissions. Boolean — true if users with edit permissions are allowed to share with other users or change the permissions; false if not.

Determines whether the File has been starred in the user's Drive. Boolean — true if the File is starred in the user's Drive; false if not. Determines whether the File is in the trash of the user's Drive. Boolean — true if the File is in the trash of the user's Drive; false if not.

The current user must be the owner of the file or have at least edit access to the item's current parent folder in order to move the item to the destination folder. Removes the given user from the list of commenters for the File. This method does not block users from access the File if they belong to a class of users who have general access — for example, if the File is shared with the user's entire domain. Removes the given user from the list of editors for the File. This method doesn't block users from accessing the File if they belong to a class of users who have general access—for example, if the File is shared with the user's entire domain, or if the File is in a shared drive that the user can access.

Removes the given user from the list of viewers and commenters for the File. This method has no effect if the user is an editor, not a viewer or commenter. This method also doesn't block users from accessing the File if they belong to a class of users who have general access—for example, if the File is shared with the user's entire domain, or if the File is in a shared drive that the user can access. File — This File for chaining. This method has no effect if the user is an editor, not a viewer.

Revokes the access to the File granted to the given user. This method does not block users from accessing the File if they belong to a class of users who have general access — for example, if the File is shared with the user's entire domain. File — this File , for chaining. Start Scripting. Tutorials and guides to take you from writing your first script to building your application. From productivity tools to enterprise automation, see what you can build with Google Apps Script.

Complete documentation with everything you need to know as you build with Google Apps Script.



0コメント

  • 1000 / 1000