ExternalStorageDownload[location]
指定の location からコンテンツをダウンロードする.
ExternalStorageDownload[location,dest]
指定の location からローカルの宛先ファイルまたはディレクトリ dest にコンテンツをダウンロードする.
ExternalStorageDownload[locationdest]
指定の場所からローカルの宛先ファイルまたはディレクトリ dest にコンテンツをダウンロードする
ExternalStorageDownload[{location1,location2,…},dest]
指定の場所からローカルの宛先 dest のコンテンツをダウンロードする.
ExternalStorageDownload[{location1,location2,…}dest]
指定の場所からローカルの宛先 dest にコンテンツをダウンロードする.
ExternalStorageDownload[{location1dest1,location2dest2,…}]
指定の場所からローカルの宛先にコンテンツをダウンロードする.
ExternalStorageDownload
ExternalStorageDownload[location]
指定の location からコンテンツをダウンロードする.
ExternalStorageDownload[location,dest]
指定の location からローカルの宛先ファイルまたはディレクトリ dest にコンテンツをダウンロードする.
ExternalStorageDownload[locationdest]
指定の場所からローカルの宛先ファイルまたはディレクトリ dest にコンテンツをダウンロードする
ExternalStorageDownload[{location1,location2,…},dest]
指定の場所からローカルの宛先 dest のコンテンツをダウンロードする.
ExternalStorageDownload[{location1,location2,…}dest]
指定の場所からローカルの宛先 dest にコンテンツをダウンロードする.
ExternalStorageDownload[{location1dest1,location2dest2,…}]
指定の場所からローカルの宛先にコンテンツをダウンロードする.
詳細とオプション
- デフォルトの外部ストレージは$ExternalStorageBaseで与えられる.
- 次は,location の可能な形式である.
-
"CID" IPFSコンテンツID (CID) "path" 外部ストレージサービスのパス(例:Dropbox,Amazon S3) "bucket/key" 外部ストレージサービスのバケット名とキー(例:Amazon S3) "bucket/prefix/" 外部ストレージサービスのバケット名と接頭辞(例:Amazon S3) "uri" 外部ストレージサービスのURI(例:Amazon S3 URI) ExternalStorageObject[…] 外部ストレージオブジェクト - 次は,dest の可能な形式である.
-
"file" ローカルファイルパス "directory" ローカルディレクトリ {"file1","file2",…} ローカルファイルパスのリスト
例題
すべて開く すべて閉じる例 (4)
file = ExternalStorageDownload[ExternalStorageObject["QmXpif6oKinoP8CwPMCJPqoJNwvEfzbH1cJg6yZkBLJwKu",
Association["ExternalStorageBase" -> "IPFS", "FileHash" -> "c9ccd63d95043f5d639a76b932dba6c9"]]]Import[file]file = ExternalStorageDownload["spikey.png", ExternalStorageBase -> "Dropbox"]Import[file]file = ExternalStorageDownload["wolfram-bucket/coneflower.jpg", ExternalStorageBase -> "AmazonS3"]Import[file]ExternalStorageObjectを与えることでAmazon S3バケットから複数のファイルをダウンロードする:
files = ExternalStorageDownload[ExternalStorageObject[{"wolfram-bucket/coneflower.jpg", "wolfram-bucket/spikey2.png",
"wolfram-bucket/turtle.jpg"}, Association["BucketName" -> "wolfram-bucket",
"Path" -> {"coneflower.jpg", "spikey2.png", "turtle.jpg"}, "ExternalStorageBase" -> "AmazonS3"]], ExternalStorageBase -> "AmazonS3"]Import /@ filesスコープ (11)
単一のファイル (7)
コンテンツID(CID)を与えてIPFSからファイルをダウンロードする:
ExternalStorageDownload["Qmd1HkTU55zaCDnX2wbnVoq15aPHdutn8c3epuJFAt4dgf"]Import[%]ExternalStorageObjectを与えることで,InterPlanetary File System (IPFS)からファイルをダウンロードする:
ExternalStorageDownload[ExternalStorageObject["Qmd1HkTU55zaCDnX2wbnVoq15aPHdutn8c3epuJFAt4dgf",
Association["ExternalStorageBase" -> "IPFS", "FileHash" -> "38cb6f3cd68c6c723591a8a385732560"]]]eso = ExternalStorageUpload["ExampleData/spikey2.png", "NonExistentFolderX77/spikey.png", ExternalStorageBase -> "Dropbox"]eso["Path"]ロケーションパスを与えてDropboxからファイルをダウンロードする:
ExternalStorageDownload[eso["Path"], ExternalStorageBase -> "Dropbox"]Import[%]IPFSから特定のローカルパスにファイルをダウンロードする:
ExternalStorageDownload[ExternalStorageObject["Qmd1HkTU55zaCDnX2wbnVoq15aPHdutn8c3epuJFAt4dgf",
Association["ExternalStorageBase" -> "IPFS", "FileHash" -> "38cb6f3cd68c6c723591a8a385732560"]], "~/Downloads/Wolfram/Spikey.png"]Import[%]ExternalStorageDownload["wolfram-bucket/coneflower.jpg", ExternalStorageBase -> "AmazonS3"]Import[%]ExternalStorageObjectを与えることでAmazon S3バケットからファイルをダウンロードする:
ExternalStorageDownload[ExternalStorageObject["Choriza.jpg", Association["BucketName" -> "wolfram-bucket",
"ExternalStorageBase" -> "AmazonS3", "Path" -> "Choriza.jpg"]]]Import[%]Amazon S3バケットから特性のローカルの場所にファイルをダウンロードする:
ExternalStorageDownload[ExternalStorageObject["zip.jpeg", Association["BucketName" -> "wolfram-bucket",
"ExternalStorageBase" -> "AmazonS3", "Path" -> "zip.jpeg"]], FileNameJoin[{$HomeDirectory, "zipDoggy.jpeg"}]]Import[%]locationdest という構文を使って同じ結果を得る:
ExternalStorageDownload[ExternalStorageObject["zip.jpeg", Association["BucketName" -> "wolfram-bucket",
"ExternalStorageBase" -> "AmazonS3", "Path" -> "zip.jpeg"]] -> FileNameJoin[{$HomeDirectory, "zipDoggy.jpeg"}]]複数のファイル (4)
Amazon S3バケットから複数のファイルをダウンロードする:
locations = Table[StringRiffle[{"wolfram-bucket", "jpgFiles", "image" <> ToString[i] <> ".jpg"}, "/"], {i, 1, 3}]files = ExternalStorageDownload[locations, ExternalStorageBase -> "AmazonS3"]Import /@ filesExternalStorageObjectを与えることでAmazon S3バケットから複数のファイルをダウンロードする:
files = ExternalStorageDownload[ExternalStorageObject[{"Cali.jpg", "Choriza2.jpg", "Choriza.jpg", "ThaiCali.jpg", "zip.jpeg"},
Association["BucketName" -> "wolfram-bucket", "ExternalStorageBase" -> "AmazonS3",
"Path" -> {"Cali.jpg", "Choriza2.jpg", "Choriza.jpg", "ThaiCali.jpg", "zip.jpeg"}]]]Import /@ filesAmazon S3バケットから特定のローカルディレクトリに複数のファイルをダウンロードする:
files = ExternalStorageDownload[ExternalStorageObject[{"wolfram-bucket/coneflower.jpg", "wolfram-bucket/spikey2.png",
"wolfram-bucket/turtle.jpg"}, Association["BucketName" -> "wolfram-bucket",
"Path" -> {"coneflower.jpg", "spikey2.png", "turtle.jpg"}, "ExternalStorageBase" -> "AmazonS3"]], $HomeDirectory]Import /@ filesAmazon S3バケットから特定のローカルの場所に複数のファイルをダウンロードする:
destinations = Table[FileNameJoin[{$HomeDirectory, "image" <> ToString[i] <> ".jpg"}], {i, 1, 3}];ExternalStorageDownload[ExternalStorageObject[{"jpgFiles/image1.jpg", "jpgFiles/image2.jpg", "jpgFiles/image3.jpg"},
Association["BucketName" -> "wolfram-bucket", "ExternalStorageBase" -> "AmazonS3",
"Path" -> {"jpgFiles/image1.jpg", "jpgFiles/image2.jpg", "jpgFiles/image3.jpg"}]], destinations, ExternalStorageBase -> "AmazonS3"]Import /@ %locations = Table[StringRiffle[{"wolfram-bucket", "jpgFiles", "image" <> ToString[i] <> ".jpg"}, "/"], {i, 1, 3}]ExternalStorageDownload[locations, destinations, ExternalStorageBase -> "AmazonS3"]locationdest という構文を使っても同じ結果が得られる:
ExternalStorageDownload[locations -> destinations, ExternalStorageBase -> "AmazonS3"]規則のリスト{location1dest1,location2dest2,…}も使える:
ExternalStorageDownload[MapThread[Rule, {locations, destinations}], ExternalStorageBase -> "AmazonS3"]オプション (4)
ExternalStorageBase (4)
Amazon S3 (2)
ExternalStorageDownload["wolfram-bucket/coneflower.jpg", ExternalStorageBase -> "AmazonS3"]Amazon S3バケットから複数のファイルをダウンロードする:
locations = Table[StringRiffle[{"wolfram-bucket", "jpgFiles", "image" <> ToString[i] <> ".jpg"}, "/"], {i, 1, 3}];ExternalStorageDownload[locations, ExternalStorageBase -> "AmazonS3"]Dropbox (1)
eso = ExternalStorageUpload["ExampleData/spikey2.png", ExternalStorageBase -> "Dropbox"]eso["Path"]ExternalStorageDownload["spikey2.png", ExternalStorageBase -> "Dropbox"]Import[%]特性と関係 (1)
CopyFileはローカルパスにファイルをダウンロードするためのファイル指定としてExternalStorageObjectもサポートする:
CopyFile[ExternalStorageObject["Qmd1HkTU55zaCDnX2wbnVoq15aPHdutn8c3epuJFAt4dgf",
Association["ExternalStorageBase" -> "IPFS", "FileHash" -> "38cb6f3cd68c6c723591a8a385732560"]], "~/Downloads/Wolfram/Spikey.png"]Import[%]関連するガイド
-
▪
- ファイル操作
テキスト
Wolfram Research (2020), ExternalStorageDownload, Wolfram言語関数, https://reference.wolfram.com/language/ref/ExternalStorageDownload.html (2021年に更新).
CMS
Wolfram Language. 2020. "ExternalStorageDownload." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/ExternalStorageDownload.html.
APA
Wolfram Language. (2020). ExternalStorageDownload. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalStorageDownload.html
BibTeX
@misc{reference.wolfram_2026_externalstoragedownload, author="Wolfram Research", title="{ExternalStorageDownload}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ExternalStorageDownload.html}", note=[Accessed: 04-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_externalstoragedownload, organization={Wolfram Research}, title={ExternalStorageDownload}, year={2021}, url={https://reference.wolfram.com/language/ref/ExternalStorageDownload.html}, note=[Accessed: 04-September-2026]}