ExternalStoragePut

ExternalStoragePut[expr]

writes expr to an external storage specified by $ExternalStorageBase.

ExternalStoragePut[expr,path]

writes expr to a specific path in an external storage specified by $ExternalStorageBase.

ExternalStoragePut[expr,ExternalStorageObject[...]]

writes expr to the service and path represented by an ExternalStorageObject.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Save a computed value to the InterPlanetary File System (IPFS):

Retrieve the value:

Save a computed value to Dropbox:

Retrieve the value:

Scope  (2)

Default Path  (1)

Save an expression to Dropbox using the default target path:

Retrieve the value:

Path Specification  (1)

Save an expression to Dropbox. If the target directory doesn't exist, it will be created:

Retrieve the value:

Options  (3)

ExternalStorageBase  (2)

Dropbox  (1)

Save an expression to Dropbox specifying the target path:

Retrieve the value:

IPFS  (1)

Save an expression to the InterPlanetary File System (IPFS). IPFS doesn't require a target path because files in that system are identified by a content identifier (CID) automatically generated:

Retrieve the value:

OverwriteTarget  (1)

By default, ExternalStoragePut does not overwrite a file if an existing path is provided and the expression to be saved is the same as the one in the existing file.

Save a expression to Dropbox:

Save a different expression to the same path:

A new file will be created:

By setting the OverwriteTarget option to True, the target file will be replaced:

Introduced in 2020
 (12.1)