AWS SDK for .NET Documentation
S3DirectoryInfo Class
AmazonAmazon.S3.IOS3DirectoryInfo Did this page help you?   Yes   No    Tell us about it...
Mimics the System.IO.DirectoryInfo for a virtual directory in S3. It exposes properties and methods for enumerating directories and files as well as methods manipulate directories.
Declaration Syntax
C#
public sealed class S3DirectoryInfo : IS3FileSystemInfo
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
S3DirectoryInfo(AmazonS3, String)
Initialize a new instance of the S3DirectoryInfo class for the specified S3 bucket.

S3DirectoryInfo(AmazonS3, String, String)
Initialize a new instance of the S3DirectoryInfo class for the specified S3 bucket and S3 object key.

Bucket
The S3DirectoryInfo for the root of the S3 bucket.

CopyFromLocal(String)
Copies files from the local file system to S3 in this directory. Sub directories are copied as well.

CopyFromLocal(String, DateTime)
Copies files from the local file system to S3 in this directory. Sub directories are copied as well. Only files that have been modified since the changesSince property will be copied.

CopyTo(String, String)
Copies the files from this directory to the target directory specified by the bucket and object key.

CopyTo(String, String, DateTime)
Copies the files from this directory to the target directory specified by the bucket and object key. Only files that have changed since the changeSince date will be copied.

CopyTo(S3DirectoryInfo)
Copies the files from this directory to the target directory.

CopyTo(S3DirectoryInfo, DateTime)
Copies the files from this directory to the target directory. Only files that have changed since the changeSince date will be copied.

CopyToLocal(String)
Copies the files from the S3 directory to the local file system in the location indicated by the path parameter.

CopyToLocal(String, DateTime)
Copies the files from the S3 directory to the local file system in the location indicated by the path parameter. Only files that have been modified since the changesSince property will be copied.

Create()()()()
Creates the directory in S3. If no object key was specified when creating the S3DirectoryInfo then the bucket will be created.

CreateSubdirectory(String)
Creates a sub directory inside the instance of S3DirectoryInfo.

Delete()()()()
Deletes all the files in this directory as well as this directory.

Delete(Boolean)
Deletes all the files in this directory as well as this directory. If recursive is set to true then all sub directories will be deleted as well.

EnumerateDirectories()()()()
Enumerate the sub directories of this directory.

EnumerateDirectories(String)
Enumerate the sub directories of this directory.

EnumerateDirectories(String, SearchOption)
Enumerate the sub directories of this directory.

EnumerateFiles()()()()
Enumerate the files of this directory.

EnumerateFiles(String)
Enumerate the sub directories of this directory.

EnumerateFiles(String, SearchOption)
Enumerate the files of this directory.

EnumerateFileSystemInfos()()()()
Enumerate the files of this directory.

EnumerateFileSystemInfos(String)
Enumerate the files of this directory.

EnumerateFileSystemInfos(String, SearchOption)
Enumerate the files of this directory.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Exists
Checks with S3 to see if the directory exists and if so returns true. Due to Amazon S3's eventual consistency model this property can return false for newly created buckets.

FullName
The full path of the directory including bucket name.

GetDirectories()()()()
Returns an array of S3DirectoryInfos for the directories in this directory.

GetDirectories(String)
Returns an array of S3DirectoryInfos for the directories in this directory.

GetDirectories(String, SearchOption)
Returns an array of S3DirectoryInfos for the directories in this directory.

GetDirectory(String)
Returns the S3DirectoryInfo for the specified sub directory.

GetFile(String)
Returns the S3FileInfo for the specified file.

GetFiles()()()()
Returns an array of S3FileInfos for the files in this directory.

GetFiles(String)
Returns an array of S3FileInfos for the files in this directory.

GetFiles(String, SearchOption)
Returns an array of S3FileInfos for the files in this directory.

GetFileSystemInfos()()()()
Returns an array of IS3FileSystemInfos for the files in this directory.

GetFileSystemInfos(String)
Returns an array of IS3FileSystemInfos for the files in this directory.

GetFileSystemInfos(String, SearchOption)
Returns an array of IS3FileSystemInfos for the files in this directory.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
LastWriteTime
Returns the last write time of the the latest file written to the directory.

LastWriteTimeUtc
UTC converted version of LastWriteTime.

MoveFromLocal(String)
Moves files from the local file system to S3 in this directory. Sub directories are moved as well.

MoveTo(String, String)
Moves the files from this directory to the target directory specified by the bucket and object key.

MoveTo(S3DirectoryInfo)
Moves the files from this directory to the target S3 directory.

MoveToLocal(String)
Moves the files from the S3 directory to the local file system in the location indicated by the path parameter.

Name
Returns the name of the folder.

Parent
Return the S3DirectoryInfo of the parent directory.

Root
Returns the S3DirectroyInfo for the S3 account.

ToString()()()() (Overrides Object.ToString()()()().)
Type
Returns the type of file system element.

Inheritance Hierarchy
Object
S3DirectoryInfo

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)