fileManagerPrivate API. This is a private API used by the file browser of ChromeOS.
fileManagerPrivate API. This is a private API used by the file browser of ChromeOS. * available since Chrome 39
(add-file-watch entry)
Adds file watch. |entry| Entry to watch |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [success] where:
|success| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Adds file watch. |entry| Entry to watch |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [success] where: |success| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(add-mount source)
Mount a resource or a file. |source| Mount point source. For compressed files it is relative file path within external file system |callback
|source| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [source-path] where:
|source-path| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Mount a resource or a file. |source| Mount point source. For compressed files it is relative file path within external file system |callback |source| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [source-path] where: |source-path| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(add-provided-file-system provider-id)
Requests adding a new provided file system. If not possible, then an error via chrome.runtime.lastError is returned.
|provider-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests adding a new provided file system. If not possible, then an error via chrome.runtime.lastError is returned. |provider-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(cancel-copy copy-id)
Cancels the running copy task. |copyId| ID of the copy task to be cancelled. |callback| Completion callback of the cancel.
|copy-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Cancels the running copy task. |copyId| ID of the copy task to be cancelled. |callback| Completion callback of the cancel. |copy-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(cancel-dialog)
Cancels file selection.
Cancels file selection.
(cancel-file-transfers entries)
Cancels ongoing file transfers for selected files. |entries| Array of files for which ongoing transfer should be canceled. |callback| Completion callback of the cancel.
|entries| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Cancels ongoing file transfers for selected files. |entries| Array of files for which ongoing transfer should be canceled. |callback| Completion callback of the cancel. |entries| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(compute-checksum entry)
Computes an MD5 checksum for the given file. |entry| The entry of the file to checksum. |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [checksum] where:
|checksum| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Computes an MD5 checksum for the given file. |entry| The entry of the file to checksum. |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [checksum] where: |checksum| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(configure-volume volume-id)
Requests configuring an existing volume. If not possible, then returns an error via chrome.runtime.lastError.
|volume-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests configuring an existing volume. If not possible, then returns an error via chrome.runtime.lastError. |volume-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(detect-character-encoding bytes)
Returns a guessed character encoding of a hex-encoded string. Every 2 characters of |bytes| represent one byte by 2-digit hexadecimal number. The result is preferred MIME name of the detected character encoding system. It is slightly different from IANA name. See third_party/ced/src/util/encodings/encodings.cc Returns an empty string if failed.
|bytes| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns a guessed character encoding of a hex-encoded string. Every 2 characters of |bytes| represent one byte by 2-digit hexadecimal number. The result is preferred MIME name of the detected character encoding system. It is slightly different from IANA name. See third_party/ced/src/util/encodings/encodings.cc Returns an empty string if failed. |bytes| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(enable-external-file-scheme)
Enables the extenal file scheme necessary to initiate drags to the browser window for files on the external backend.
Enables the extenal file scheme necessary to initiate drags to the browser window for files on the external backend.
(ensure-file-downloaded entry)
If |entry| is a Drive file, ensures the file is downloaded to the cache. Otherwise, finishes immediately in success. For example, when the file is under Downloads, MTP, removeable media, or provided by extensions for other cloud storage services than Google Drive, this does nothing. This is a workaround to avoid intermittent and duplicated downloading of a Drive file by current implementation of Drive integration when an extension reads a file sequentially but intermittently. |entry| A regular file entry to be read. |callback| Callback called after having the file in cache. 'runtime.lastError' will be set if there was an error.
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
If |entry| is a Drive file, ensures the file is downloaded to the cache. Otherwise, finishes immediately in success. For example, when the file is under Downloads, MTP, removeable media, or provided by extensions for other cloud storage services than Google Drive, this does nothing. This is a workaround to avoid intermittent and duplicated downloading of a Drive file by current implementation of Drive integration when an extension reads a file sequentially but intermittently. |entry| A regular file entry to be read. |callback| Callback called after having the file in cache. 'runtime.lastError' will be set if there was an error. |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(execute-custom-action entries action-id)
Executes a custom action for a set of entries. If not possible, then an error via chrome.runtime.lastError is returned.
|entries| - ? |action-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Executes a custom action for a set of entries. If not possible, then an error via chrome.runtime.lastError is returned. |entries| - ? |action-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(execute-task task-id entries)
Executes file browser task over selected files. |taskId| The unique identifier of task to execute. |entries| Array of entries |callback
|task-id| - ? |entries| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Executes file browser task over selected files. |taskId| The unique identifier of task to execute. |entries| Array of entries |callback |task-id| - ? |entries| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(format-volume volume-id)
Formats a mounted volume. |volumeId| ID of the volume to be formatted.
|volume-id| - ?
Formats a mounted volume. |volumeId| ID of the volume to be formatted. |volume-id| - ?
(get-crostini-shared-paths)
Returns list of paths shared with crostini container.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns list of paths shared with crostini container. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-custom-actions entries)
Requests list of custom actions for the specified entries. If not possible, then an error via chrome.runtime.lastError is returned.
|entries| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [actions] where:
|actions| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests list of custom actions for the specified entries. If not possible, then an error via chrome.runtime.lastError is returned. |entries| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [actions] where: |actions| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-directory-size entry)
Get the total size of a directory. |entry| Entry of the target directory. |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [size] where:
|size| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the total size of a directory. |entry| Entry of the target directory. |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [size] where: |size| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-download-url entry)
Requests a download url to download the file contents. |entry| The entry to download. |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [url] where:
|url| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests a download url to download the file contents. |entry| The entry to download. |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [url] where: |url| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-drive-connection-state)
Retrieves the state of the current drive connection. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Retrieves the state of the current drive connection. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-entry-properties entries names)
Requests additional properties for files. |entries| list of entries |names| list of requested properties by their names. |callback| Completion callback. May return less than requested properties if some are not available. In the same time, it can return properties which were not requested (if it's cheap to compute them).
|entries| - ? |names| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entry-properties] where:
|entry-properties| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests additional properties for files. |entries| list of entries |names| list of requested properties by their names. |callback| Completion callback. May return less than requested properties if some are not available. In the same time, it can return properties which were not requested (if it's cheap to compute them). |entries| - ? |names| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entry-properties] where: |entry-properties| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-file-tasks entries)
Gets the list of tasks that can be performed over selected files. |entries| Array of selected entries |callback
|entries| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [tasks] where:
|tasks| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the list of tasks that can be performed over selected files. |entries| Array of selected entries |callback |entries| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [tasks] where: |tasks| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-linux-package-info entry)
Requests information about a Linux package. |entry| is a .deb file.
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [linux-package-info] where:
|linux-package-info| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests information about a Linux package. |entry| is a .deb file. |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [linux-package-info] where: |linux-package-info| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-mime-type entry)
Gets the MIME type of a file. |entry| Entry to be checked. |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the MIME type of a file. |entry| Entry to be checked. |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-preferences)
Retrieves file manager preferences. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Retrieves file manager preferences. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-profiles)
Obtains a list of profiles that are logged-in.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [profiles running-profile display-profile] where:
|profiles| - ? |running-profile| - ? |display-profile| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Obtains a list of profiles that are logged-in. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [profiles running-profile display-profile] where: |profiles| - ? |running-profile| - ? |display-profile| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-providers)
Returns list of available providers.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [extensions] where:
|extensions| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns list of available providers. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [extensions] where: |extensions| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-recent-files restriction)
Gets recently modified files across file systems. |restriction| Flag to restrict sources of recent files. |callback
|restriction| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets recently modified files across file systems. |restriction| Flag to restrict sources of recent files. |callback |restriction| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-size-stats volume-id)
Retrieves total and remaining size of a mount point. |volumeId| ID of the volume to be checked. |callback
|volume-id| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [size-stats] where:
|size-stats| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Retrieves total and remaining size of a mount point. |volumeId| ID of the volume to be checked. |callback |volume-id| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [size-stats] where: |size-stats| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-strings)
Gets localized strings and initialization data. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets localized strings and initialization data. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-thumbnail entry crop-to-square)
For a file in DriveFS, retrieves its thumbnail. If |cropToSquare| is true, returns a thumbnail appropriate for file list or grid views; otherwise, returns a thumbnail appropriate for quickview.
|entry| - ? |crop-to-square| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [thumbnail-data-url] where:
|thumbnail-data-url| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
For a file in DriveFS, retrieves its thumbnail. If |cropToSquare| is true, returns a thumbnail appropriate for file list or grid views; otherwise, returns a thumbnail appropriate for quickview. |entry| - ? |crop-to-square| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [thumbnail-data-url] where: |thumbnail-data-url| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-volume-metadata-list)
Get the list of mounted volumes. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [volume-metadata-list] where:
|volume-metadata-list| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Get the list of mounted volumes. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [volume-metadata-list] where: |volume-metadata-list| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(grant-access entry-urls)
Requests granting R/W permissions for the passed entries. It's a best effort operation. Some files may not be granted access if the url is invalid or not backed by the external file system. |entryUrls| Urls for the entries to be accessed. |callback
|entry-urls| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests granting R/W permissions for the passed entries. It's a best effort operation. Some files may not be granted access if the url is invalid or not backed by the external file system. |entryUrls| Urls for the entries to be accessed. |callback |entry-urls| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(install-linux-package entry)
Starts installation of a Linux package.
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [response failure-reason] where:
|response| - ? |failure-reason| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Starts installation of a Linux package. |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [response failure-reason] where: |response| - ? |failure-reason| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-crostini-enabled)
Returns true if crostini is enabled. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns true if crostini is enabled. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-piex-loader-enabled)
Returns if Piex loader is enabled.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns if Piex loader is enabled. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(is-uma-enabled)
Is UMA enabled?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Is UMA enabled? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(logout-user-for-reauthentication)
Logout the current user for navigating to the re-authentication screen for the Google account.
Logout the current user for navigating to the re-authentication screen for the Google account.
(mark-cache-as-mounted source-path is-mounted)
Marks a cache file of Drive as mounted or unmounted. Does nothing if the file is not under Drive directory. |sourcePath
Mounted source file. Relative file path within external file system. |isMounted| Mark as mounted if true. Mark as unmounted otherwise. |callback| Completion callback. 'runtime.lastError' will be set if there was an error.
|source-path| - ? |is-mounted| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Marks a cache file of Drive as mounted or unmounted. Does nothing if the file is not under Drive directory. |sourcePath Mounted source file. Relative file path within external file system. |isMounted| Mark as mounted if true. Mark as unmounted otherwise. |callback| Completion callback. 'runtime.lastError' will be set if there was an error. |source-path| - ? |is-mounted| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(mount-crostini)
Starts and mounts crostini container. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Starts and mounts crostini container. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(on-drive-connection-status-changed* config channel & args)
(open-inspector type)
Opens inspector window. |type| InspectionType which specifies how to open inspector.
|type| - ?
Opens inspector window. |type| InspectionType which specifies how to open inspector. |type| - ?
(open-settings-subpage sub-page)
Opens page in Settings window. |sub_page| Name of a sub_page to show.
|sub-page| - ?
Opens page in Settings window. |sub_page| Name of a sub_page to show. |sub-page| - ?
(pin-drive-file entry pin)
Pins/unpins a Drive file in the cache. |entry| Entry to pin/unpin. |pin| Pass true to pin the file. |callback| Completion callback. 'runtime.lastError' will be set if there was an error.
|entry| - ? |pin| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Pins/unpins a Drive file in the cache. |entry| Entry to pin/unpin. |pin| Pass true to pin the file. |callback| Completion callback. 'runtime.lastError' will be set if there was an error. |entry| - ? |pin| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(remove-file-watch entry)
Removes file watch. |entry| Watched entry |callback
|entry| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [success] where:
|success| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Removes file watch. |entry| Watched entry |callback |entry| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [success] where: |success| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(remove-mount volume-id)
Unmounts a mounted resource. |volumeId| An ID of the volume.
|volume-id| - ?
Unmounts a mounted resource. |volumeId| An ID of the volume. |volume-id| - ?
(rename-volume volume-id new-name)
Renames a mounted volume. |volumeId| ID of the volume to be renamed. |newName| New name of the target volume.
|volume-id| - ? |new-name| - ?
Renames a mounted volume. |volumeId| ID of the volume to be renamed. |newName| New name of the target volume. |volume-id| - ? |new-name| - ?
(request-access-token refresh)
Requests a Drive API OAuth2 access token. |refresh| Whether the token should be refetched instead of using the cached one. |callback
|refresh| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [access-token] where:
|access-token| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests a Drive API OAuth2 access token. |refresh| Whether the token should be refetched instead of using the cached one. |callback |refresh| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [access-token] where: |access-token| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(request-drive-share entry share-type)
Requests to share drive files. |entry| Entry to be shared. |shareType| Type of access that is getting granted.
|entry| - ? |share-type| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests to share drive files. |entry| Entry to be shared. |shareType| Type of access that is getting granted. |entry| - ? |share-type| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(request-web-store-access-token)
Requests a Webstore API OAuth2 access token. |callback
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [access-token] where:
|access-token| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests a Webstore API OAuth2 access token. |callback This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [access-token] where: |access-token| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(resolve-isolated-entries entries)
Resolves entries in the isolated file system and returns corresponding entries in the external file system mounted to Chrome OS file manager backend. If resolving entry fails, the entry will be just ignored and the corresponding entry does not appear in the result.
|entries| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Resolves entries in the isolated file system and returns corresponding entries in the external file system mounted to Chrome OS file manager backend. If resolving entry fails, the entry will be just ignored and the corresponding entry does not appear in the result. |entries| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(search-drive search-params)
Performs drive content search. |searchParams| |callback
|search-params| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries next-feed] where:
|entries| - ? |next-feed| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Performs drive content search. |searchParams| |callback |search-params| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries next-feed] where: |entries| - ? |next-feed| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(search-drive-metadata search-params)
Performs drive metadata search. |searchParams| |callback
|search-params| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [results] where:
|results| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Performs drive metadata search. |searchParams| |callback |search-params| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [results] where: |results| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(search-files-by-hashes volume-id hash-list)
Search files in the volume having |volumeId| by using |hashList|. sub-directories) the given |targetDirectoryUrl|.
|volume-id| - ? |hash-list| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [urls] where:
|urls| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Search files in the volume having |volumeId| by using |hashList|. sub-directories) the given |targetDirectoryUrl|. |volume-id| - ? |hash-list| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [urls] where: |urls| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(select-file selected-path index for-opening should-return-local-path)
Selects a file. |selectedPath| A selected path |index| Index of Filter |forOpening| true if paths are selected for opening. false if for saving. |shouldReturnLocalPath| true if paths need to be resolved to local paths. |callback
|selected-path| - ? |index| - ? |for-opening| - ? |should-return-local-path| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Selects a file. |selectedPath| A selected path |index| Index of Filter |forOpening| true if paths are selected for opening. false if for saving. |shouldReturnLocalPath| true if paths need to be resolved to local paths. |callback |selected-path| - ? |index| - ? |for-opening| - ? |should-return-local-path| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(select-file* config selected-path index for-opening should-return-local-path)
(select-files selected-paths should-return-local-path)
Selects multiple files. |selectedPaths| Array of selected paths |shouldReturnLocalPath| true if paths need to be resolved to local paths. |callback
|selected-paths| - ? |should-return-local-path| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Selects multiple files. |selectedPaths| Array of selected paths |shouldReturnLocalPath| true if paths need to be resolved to local paths. |callback |selected-paths| - ? |should-return-local-path| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-default-task task-id entries mime-types)
Sets the default task for the supplied MIME types and path extensions. Lists of MIME types and URLs may contain duplicates. Additionally, the list of MIME types can be empty. |taskId| The unique identifier of task to mark as default. |entries
Array of selected entries to extract path extensions from. |mimeTypes| Array of selected file MIME types. |callback
|task-id| - ? |entries| - ? |mime-types| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Sets the default task for the supplied MIME types and path extensions. Lists of MIME types and URLs may contain duplicates. Additionally, the list of MIME types can be empty. |taskId| The unique identifier of task to mark as default. |entries Array of selected entries to extract path extensions from. |mimeTypes| Array of selected file MIME types. |callback |task-id| - ? |entries| - ? |mime-types| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-entry-tag entry visibility key value)
Sets a tag on a file or a directory. Only Drive files are supported.
|entry| - ? |visibility| - ? |key| - ? |value| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Sets a tag on a file or a directory. Only Drive files are supported. |entry| - ? |visibility| - ? |key| - ? |value| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-preferences change-info)
Sets file manager preferences. |changeInfo
|change-info| - ?
Sets file manager preferences. |changeInfo |change-info| - ?
(share-paths-with-crostini entries persist)
Shares directory with crostini container. |entries| Entries of the files or directories to share. |persist| If true, shares will persist across restarts. |callback
|entries| - ? |persist| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Shares directory with crostini container. |entries| Entries of the files or directories to share. |persist| If true, shares will persist across restarts. |callback |entries| - ? |persist| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(start-copy entry parent-entry new-name)
Starts to copy an entry. If the source is a directory, the copy is done recursively. |entry| Entry of the source entry to be copied. |parentEntry| Entry for the destination (parent) directory. |newName| Name of the new entry. It must not contain '/'. |callback| Completion callback.
|entry| - ? |parent-entry| - ? |new-name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [copy-id] where:
|copy-id| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Starts to copy an entry. If the source is a directory, the copy is done recursively. |entry| Entry of the source entry to be copied. |parentEntry| Entry for the destination (parent) directory. |newName| Name of the new entry. It must not contain '/'. |callback| Completion callback. |entry| - ? |parent-entry| - ? |new-name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [copy-id] where: |copy-id| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.file-manager-private namespace.
Taps all valid non-deprecated events in chromex.ext.file-manager-private namespace.
(tap-on-apps-updated-events channel & args)
Events will be put on the |channel| with signature [::on-apps-updated []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-apps-updated []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-copy-progress-events channel & args)
Events will be put on the |channel| with signature [::on-copy-progress [copy-id status]] where:
|copy-id| - ? |status| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-copy-progress [copy-id status]] where: |copy-id| - ? |status| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-device-changed-events channel & args)
Events will be put on the |channel| with signature [::on-device-changed [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-device-changed [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-directory-changed-events channel & args)
Events will be put on the |channel| with signature [::on-directory-changed [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-directory-changed [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-drive-connection-status-changed-events channel & args)
Events will be put on the |channel| with signature [::on-drive-connection-status-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-drive-connection-status-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-drive-sync-error-events channel & args)
Events will be put on the |channel| with signature [::on-drive-sync-error [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-drive-sync-error [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-file-transfers-updated-events channel & args)
Events will be put on the |channel| with signature [::on-file-transfers-updated [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-file-transfers-updated [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-mount-completed-events channel & args)
Events will be put on the |channel| with signature [::on-mount-completed [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-mount-completed [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-preferences-changed-events channel & args)
Events will be put on the |channel| with signature [::on-preferences-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Events will be put on the |channel| with signature [::on-preferences-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(validate-path-name-length parent-entry name)
Checks whether the path name length fits in the limit of the filesystem. |parentEntry| The entry of the parent directory entry. |name| The name of the file. |callback| Called back when the check is finished.
|parent-entry| - ? |name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Checks whether the path name length fits in the limit of the filesystem. |parentEntry| The entry of the parent directory entry. |name| The name of the file. |callback| Called back when the check is finished. |parent-entry| - ? |name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(zip-selection entries parent-entry dest-name)
Create a zip file for the selected files. |parentEntry| Entry of the directory containing the selected files. |entries
Entries of the selected files. The files must be under the directory specified by |parentEntry|. |destName| Name of the destination zip file. The zip file will be created under the directory specified by |parentEntry|. |callback
|entries| - ? |parent-entry| - ? |dest-name| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [success] where:
|success| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Create a zip file for the selected files. |parentEntry| Entry of the directory containing the selected files. |entries Entries of the selected files. The files must be under the directory specified by |parentEntry|. |destName| Name of the destination zip file. The zip file will be created under the directory specified by |parentEntry|. |callback |entries| - ? |parent-entry| - ? |dest-name| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [success] where: |success| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(zoom operation)
Changes the zoom factor of the Files app. |operation| Zooming mode.
|operation| - ?
Changes the zoom factor of the Files app. |operation| Zooming mode. |operation| - ?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close