ExternalStorageObject

ExternalStorageObject[location]

represents a file stored in an external location.

ExternalStorageObject[assoc]

represents a file stored in an external service specified by the components of the association assoc.

ExternalStorageObject[location,assoc]

represents a file stored in an external location with additional elements given by assoc.

Details

Examples

open allclose all

Basic Examples  (3)

Create an ExternalStorageObject using the default $ExternalStorageBase:

Create an ExternalStorageObject by providing an InterPlanetary File System (IPFS) content identifier as location:

Create an ExternalStorageObject by providing a path to the file and the service represented by the "ExternalStorageBase" value inside the association:

Applications  (3)

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

Get an expression stored in the InterPlanetary File System (IPFS):

Download a file from the InterPlanetary File System (IPFS):

Import the downloaded content:

CopyFile also supports an ExternalStorageObject as a file specification to download it to a local path:

Properties & Relations  (5)

CID  (1)

Get the content identifier of an ExternalStorageObject representing a file stored in IPFS:

FileHash  (1)

Get the file hash of an ExternalStorageObject representing a file stored in IPFS:

Path  (1)

Get the path of an ExternalStorageObject representing a file stored in Dropbox:

ResourceType  (1)

Get the resource type of an ExternalStorageObject:

Service  (1)

Get the external storage service associated to an ExternalStorageObject:

Introduced in 2020
 (12.1)