Trait

com.google.appsscript.drive

DriveApp

Related Doc: package drive

Permalink

trait DriveApp extends Object

DriveApp Allows scripts to create, find, and modify files and folders in Google Drive. // Log the name of every file in the user's Drive. var files = DriveApp.getFiles(); while (files.hasNext()) { var file = files.next(); Logger.log(file.getName()); }

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DriveApp
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addFile(child: File): Folder

    Permalink

    Adds the given file to the root of the user's Drive.

    Adds the given file to the root of the user's Drive. This method does not move the file out of its existing parent folder; a file can have more than one parent simultaneously.

  5. def addFolder(child: Folder): Folder

    Permalink

    Adds the given folder to the root of the user's Drive.

    Adds the given folder to the root of the user's Drive. This method does not move the folder out of its existing parent folder; a folder can have more than one parent simultaneously.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def continueFileIterator(continuationToken: String): FileIterator

    Permalink

    Resumes a file iteration using a continuation token from a previous iterator.

    Resumes a file iteration using a continuation token from a previous iterator. This method is useful if processing an iterator in one execution would exceed the maximum execution time. Continuation tokens are generally valid for one week.

  9. def continueFolderIterator(continuationToken: String): FolderIterator

    Permalink

    Resumes a folder iteration using a continuation token from a previous iterator.

    Resumes a folder iteration using a continuation token from a previous iterator. This method is useful if processing an iterator in one execution would exceed the maximum execution time. Continuation tokens are generally valid for one week.

  10. def createFile(name: String, content: String, mimeType: String): File

    Permalink

    Creates a file in the root of the user's Drive with the given name, contents, and MIME type.

    Creates a file in the root of the user's Drive with the given name, contents, and MIME type. Throws an exception if content is larger than 10MB.

  11. def createFile(name: String, content: String): File

    Permalink

    Creates a text file in the root of the user's Drive with the given name and contents.

    Creates a text file in the root of the user's Drive with the given name and contents. Throws an exception if content is larger than 10MB.

  12. def createFile(blob: BlobSource): File

    Permalink

    Creates a file in the root of the user's Drive from a given Blob of arbitrary data.

  13. def createFolder(name: String): Folder

    Permalink

    Creates a folder in the root of the user's Drive with the given name.

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getFileById(id: String): File

    Permalink

    Gets the file with the given ID.

    Gets the file with the given ID. Throws a scripting exception if the file does not exist or the user does not have permission to access it.

  19. def getFiles(): FileIterator

    Permalink

    Gets a collection of all files in the user's Drive.

  20. def getFilesByName(name: String): FileIterator

    Permalink

    Gets a collection of all files in the user's Drive that have the given name.

  21. def getFilesByType(mimeType: String): FileIterator

    Permalink

    Gets a collection of all files in the user's Drive that have the given MIME type.

  22. def getFolderById(id: String): Folder

    Permalink

    Gets the folder with the given ID.

    Gets the folder with the given ID. Throws a scripting exception if the folder does not exist or the user does not have permission to access it.

  23. def getFolders(): FolderIterator

    Permalink

    Gets a collection of all folders in the user's Drive.

  24. def getFoldersByName(name: String): FolderIterator

    Permalink

    Gets a collection of all folders in the user's Drive that have the given name.

  25. def getRootFolder(): Folder

    Permalink

    Gets the folder at the root of the user's Drive.

  26. def getStorageLimit(): Int

    Permalink

    Gets the number of bytes the user is allowed to store in Drive.

  27. def getStorageUsed(): Int

    Permalink

    Gets the number of bytes the user is currently storing in Drive.

  28. def getTrashedFiles(): FileIterator

    Permalink

    Gets a collection of all the files in the trash of the user's Drive.

  29. def getTrashedFolders(): FolderIterator

    Permalink

    Gets a collection of all the folders in the trash of the user's Drive.

  30. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  38. def removeFile(child: File): Folder

    Permalink

    Removes the given file from the root of the user's Drive.

    Removes the given file from the root of the user's Drive. This method does not delete the file, but if a file is removed from all of its parents, it cannot be seen in Drive except by searching for it or using the "All items" view.

  39. def removeFolder(child: Folder): Folder

    Permalink

    Removes the given folder from the root of the user's Drive.

    Removes the given folder from the root of the user's Drive. This method does not delete the folder or its contents, but if a folder is removed from all of its parents, it cannot be seen in Drive except by searching for it or using the "All items" view.

  40. def searchFiles(params: String): FileIterator

    Permalink

    Gets a collection of all files in the user's Drive that match the given search criteria.

    Gets a collection of all files in the user's Drive that match the given search criteria. The search criteria are detailed the Google Drive SDK documentation. Note that the params argument is a query string that may contain string values, so take care to escape quotation marks correctly (for example "title contains 'Gulliver\\'s Travels'" or 'title contains "Gulliver\'s Travels"').

  41. def searchFolders(params: String): FolderIterator

    Permalink

    Gets a collection of all folders in the user's Drive that match the given search criteria.

    Gets a collection of all folders in the user's Drive that match the given search criteria. The search criteria are detailed the Google Drive SDK documentation. Note that the params argument is a query string that may contain string values, so take care to escape quotation marks correctly (for example "title contains 'Gulliver\\'s Travels'" or 'title contains "Gulliver\'s Travels"').

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped