Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Copy files between FileSystems

Source:R/filesystem.R
copy_files.Rd

Copy files between FileSystems

Usage

copy_files(from,to, chunk_size=1024L*1024L)

Arguments

from

A string path to a local directory or file, a URI, or aSubTreeFileSystem. Files will be copied recursively from this path.

to

A string path to a local directory or file, a URI, or aSubTreeFileSystem. Directories will be created as necessary

chunk_size

The maximum size of block to read before flushingto the destination file. A larger chunk_size will use more memory whilecopying but may help accommodate high latency FileSystems.

Value

Nothing: called for side effects in the file system

Examples

if(FALSE){# Copy an S3 bucket's files to a local directory:copy_files("s3://your-bucket-name","local-directory")# Using a FileSystem objectcopy_files(s3_bucket("your-bucket-name"),"local-directory")# Or go the other way, from local to S3copy_files("local-directory",s3_bucket("your-bucket-name"))}

[8]ページ先頭

©2009-2025 Movatter.jp