S3_File.list
listname_filterrecursive
Group: Input
Documentation
Lists files contained in the directory denoted by this file. Note, as S3 does not have a native notion of directories, this operation will return an empty Vector if the folder does not exist.
Arguments
name_filter: A glob pattern that can be used to filter the returned files. If it is not specified, all files are returned.recursive: Specifies whether the returned list of files should include also files from the subdirectories. If set toFalse(the default), only the immediate children of the listed directory are considered.
Returns
- A vector of
S3_Fileobjects representing the files in the directory.
Errors
- If the bucket does not exist, an
S3_Bucket_Not_Founderror is thrown. - If the target is a file, an
Illegal_Argumenterror is thrown. - If the access to the object is forbidden, an
S3_Error.Access_Deniederror is thrown. - If using
name_filterorrecursive, anUnimplementederror is thrown as these are currently unsupported.