file_system

Import, export, and preview files and directories outside or inside the app’s sandbox.

Importing / Exporting

file_system.import_file

Opens the file picker to import one or more files.

file_system.pick_directory

Opens the file picker to select a directory.

file_system.open_directory

A context manager that temporarily changes the current directory to a folder selected from a file picker.

file_system.save_as

Opens a save panel to export a file as a copy.

file_system.FilePickerCancellation

The file picker was closed without selecting a file.

Share Sheet

file_system.share_text

Opens the Share Sheet to share one or more strings.

file_system.share_files

Opens the Share Sheet to share one or more files.

Quick Look

file_system.quick_look

Opens Quick Look to preview one or more files.

Bookmarks

A Bookmark to a file makes it possible to keep read and write access to a file outside the app’s sandbox across launches.

file_system.StoredBookmark

A bookmark for storing a file path in the disk.

file_system.StoredBookmark.delete_from_disk

Deletes the bookmark from the disk.

file_system.StoredBookmark.path

The file path stored in the bookmark,

file_system.FileBookmark

A bookmark for storing file paths.

file_system.FolderBookmark

A bookmark for storing folder paths.