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)
(add-mount source password)
Mounts a resource or a file. |source| Mount point source. For compressed files it is the relative file path within the external file system. |password| Optional password to decrypt the file. |callback| Callback called with the source path of the mount.
|source| - ? |password| - ?
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.
Mounts a resource or a file. |source| Mount point source. For compressed files it is the relative file path within the external file system. |password| Optional password to decrypt the file. |callback| Callback called with the source path of the mount. |source| - ? |password| - ? 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. On failure, sets 'runtime.lastError'.
|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. On failure, sets 'runtime.lastError'. |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.
(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. On failure, sets '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. On failure, sets '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.
(copy-image-to-clipboard entry)
Copies an image to the system clipboard. |entry| Entry of the image to copy to the system clipboard.
|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.
Copies an image to the system clipboard. |entry| Entry of the image to copy to the system clipboard. |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.
(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.
(execute-custom-action entries action-id)
Executes a custom action for a set of entries. On failure, sets 'runtime.lastError'.
|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. On failure, sets 'runtime.lastError'. |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 filesystem volume-label)
Formats a mounted volume. |volumeId| ID of the volume to be formatted. |filesystem| Filesystem type to be formatted to. |volumeLabel| Label of the drive after formatting.
|volume-id| - ? |filesystem| - ? |volume-label| - ?
Formats a mounted volume. |volumeId| ID of the volume to be formatted. |filesystem| Filesystem type to be formatted to. |volumeLabel| Label of the drive after formatting. |volume-id| - ? |filesystem| - ? |volume-label| - ?
(get-android-picker-apps extensions)
Returns a list of Android picker apps to be shown in file selector.
|extensions| - ?
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 [apps] where:
|apps| - ?
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 list of Android picker apps to be shown in file selector. |extensions| - ? 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 [apps] where: |apps| - ? 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-content-metadata file-entry mime-type include-images)
Gets metadata from an Audio or Video file. |fileEntry| The file entry to be checked. |mimeType| Content sniffed mimeType of the file. |includeImages| False returns metadata tags only. True returns metadata tags and metadata (thumbnail) images. |callback
|file-entry| - ? |mime-type| - ? |include-images| - ?
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 metadata from an Audio or Video file. |fileEntry| The file entry to be checked. |mimeType| Content sniffed mimeType of the file. |includeImages| False returns metadata tags only. True returns metadata tags and metadata (thumbnail) images. |callback |file-entry| - ? |mime-type| - ? |include-images| - ? 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-content-mime-type file-entry)
Gets the content sniffed MIME type of a file. |fileEntry| The file entry to be checked. |callback
|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 [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 content sniffed MIME type of a file. |fileEntry| The file entry to be checked. |callback |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 [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-crostini-shared-paths observe-first-for-session vm-name)
Returns list of paths shared with crostini container. |observeFirstForSession| If true, callback provides whether this is the |vmName| VM to get shared paths of. first time this function has been called with observeFirstForSession true.
|observe-first-for-session| - ? |vm-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 [entries first-for-session] where:
|entries| - ? |first-for-session| - ?
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. |observeFirstForSession| If true, callback provides whether this is the |vmName| VM to get shared paths of. first time this function has been called with observeFirstForSession true. |observe-first-for-session| - ? |vm-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 [entries first-for-session] where: |entries| - ? |first-for-session| - ? 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-crostini-shared-paths* config observe-first-for-session vm-name)
(get-custom-actions entries)
Requests list of custom actions for the specified entries. On failure, sets 'runtime.lastError'.
|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. On failure, sets 'runtime.lastError'. |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-drive-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-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-holding-space-state)
Retrieves the current holding space state, for example the list of items the holding space currently contains. |callback
The result 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 [state] where:
|state| - ?
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 current holding space state, for example the list of items the holding space currently contains. |callback The result 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 [state] where: |state| - ? 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 an entry. |entry| The 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 an entry. |entry| The 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-pdf-thumbnail entry width height)
For a local PDF file, retrieves its thumbnail with a given |width| and |height|.
|entry| - ? |width| - ? |height| - ?
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 local PDF file, retrieves its thumbnail with a given |width| and |height|. |entry| - ? |width| - ? |height| - ? 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-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 file-type)
Gets recently modified files across file systems. |restriction| Flag to restrict sources of recent files. |fileType
Requested file type to filter recent files. |callback
|restriction| - ? |file-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 [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. |fileType Requested file type to filter recent files. |callback |restriction| - ? |file-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 [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-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.
(import-crostini-image entry)
Imports a Crostini Image File (.tini). This overrides the existing Linux apps and files.
|entry| - ?
Imports a Crostini Image File (.tini). This overrides the existing Linux apps and files. |entry| - ?
(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.
(invoke-sharesheet entries)
Invoke Sharesheet for 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 [].
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.
Invoke Sharesheet for 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 []. 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.
(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-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 search-params)
Search files in My Files.
|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] 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 files in My Files. |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] 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-files-by-hashes volume-id hash-list)
Search files in the volume having |volumeId| by using |hashList|.
|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 [paths] where:
|paths| - ?
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|. |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 [paths] where: |paths| - ? 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-android-picker-app android-app)
Called when the user selects an Android picker app in file selector.
|android-app| - ?
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.
Called when the user selects an Android picker app in file selector. |android-app| - ? 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 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-preferences change-info)
Sets file manager preferences. |changeInfo
|change-info| - ?
Sets file manager preferences. |changeInfo |change-info| - ?
(share-paths-with-crostini vm-name entries persist)
Shares paths with crostini container. |vmName| VM to share path with. |entries| Entries of the files or directories to share. |persist| If true, shares will persist across restarts. |callback
|vm-name| - ? |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 paths with crostini container. |vmName| VM to share path with. |entries| Entries of the files or directories to share. |persist| If true, shares will persist across restarts. |callback |vm-name| - ? |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.
(sharesheet-has-targets entries)
Return true if sharesheet contains share targets for entries. |entries| Array of selected entries |callback| is called with error in case of failure and with no arguments if successfully launched the Sharesheet dialog, but before user has finished the sharing.
|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.
Return true if sharesheet contains share targets for entries. |entries| Array of selected entries |callback| is called with error in case of failure and with no arguments if successfully launched the Sharesheet dialog, but before user has finished the sharing. |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.
(single-partition-format device-storage-path filesystem volume-label)
Deletes partitions of removable device, creates a new partition and format it. |deviceStoragePath| Storage path of the device to be formatted. |filesystem| Filesystem type to be formatted to. |volumeLabel| Label of the drive after formatting.
|device-storage-path| - ? |filesystem| - ? |volume-label| - ?
Deletes partitions of removable device, creates a new partition and format it. |deviceStoragePath| Storage path of the device to be formatted. |filesystem| Filesystem type to be formatted to. |volumeLabel| Label of the drive after formatting. |device-storage-path| - ? |filesystem| - ? |volume-label| - ?
(single-partition-format* config device-storage-path filesystem volume-label)
(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-crostini-changed-events channel & args)
Events will be put on the |channel| with signature [::on-crostini-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-crostini-changed [event]] where: |event| - ? 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.
(toggle-added-to-holding-space entries added)
Adds or removes a list of entries to temporary holding space. Any entries whose current holding space state matches the intended state will be skipped. |entries| The list of entries whose holding space needs to be updated. |add| Whether items should be added or removed from the holding space. |callback| Completion callback.
|entries| - ? |added| - ?
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.
Adds or removes a list of entries to temporary holding space. Any entries whose current holding space state matches the intended state will be skipped. |entries| The list of entries whose holding space needs to be updated. |add| Whether items should be added or removed from the holding space. |callback| Completion callback. |entries| - ? |added| - ? 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.
(unshare-path-with-crostini vm-name entry)
Unshares path with crostini container. |vmName| VM to unshare path from. |entry| Entry of the file or directory to unshare. |callback
|vm-name| - ? |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.
Unshares path with crostini container. |vmName| VM to unshare path from. |entry| Entry of the file or directory to unshare. |callback |vm-name| - ? |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.
(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