Class FileSystem
File system utilities.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class FileSystem : DeputyBase
Syntax (vb)
Public Class FileSystem
Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var fileSystem = new FileSystem();
Synopsis
Constructors
FileSystem() | |
FileSystem(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FileSystem(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Tmpdir | The real path of the system temp directory. |
Methods
CopyDirectory(String, String, ICopyOptions, String) | Copies an entire directory structure. |
Fingerprint(String, IFingerprintOptions) | Produces fingerprint based on the contents of a single file or an entire directory tree. |
IsEmpty(String) | Checks whether a directory is empty. |
Mkdtemp(String) | Creates a unique temporary directory in the system temp directory. |
Constructors
FileSystem()
public FileSystem()
FileSystem(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FileSystem(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FileSystem(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FileSystem(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Tmpdir
The real path of the system temp directory.
public static string Tmpdir { get; }
Property Value
System.String
Methods
CopyDirectory(String, String, ICopyOptions, String)
Copies an entire directory structure.
public static void CopyDirectory(string srcDir, string destDir, ICopyOptions options = null, string rootDir = null)
Parameters
- srcDir System.String
Source directory.
- destDir System.String
Destination directory.
- options ICopyOptions
options.
- rootDir System.String
Root directory to calculate exclusions from.
Fingerprint(String, IFingerprintOptions)
Produces fingerprint based on the contents of a single file or an entire directory tree.
public static string Fingerprint(string fileOrDirectory, IFingerprintOptions options = null)
Parameters
- fileOrDirectory System.String
The directory or file to fingerprint.
- options IFingerprintOptions
Fingerprinting options.
Returns
System.String
Remarks
The fingerprint will also include:
IsEmpty(String)
Checks whether a directory is empty.
public static bool IsEmpty(string dir)
Parameters
- dir System.String
The directory to check.
Returns
System.Boolean
Mkdtemp(String)
Creates a unique temporary directory in the system temp directory.
public static string Mkdtemp(string prefix)
Parameters
- prefix System.String
A prefix for the directory name.
Returns
System.String