Package software.amazon.awscdk.core
Class FileSystem
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.FileSystem
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.041Z")
@Stability(Stable)
public class FileSystem
extends software.amazon.jsii.JsiiObject
File system utilities.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; FileSystem fileSystem = new FileSystem();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFileSystem(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyDirectory(String srcDir, String destDir) Copies an entire directory structure.static voidcopyDirectory(String srcDir, String destDir, CopyOptions options) Copies an entire directory structure.static voidcopyDirectory(String srcDir, String destDir, CopyOptions options, String rootDir) Copies an entire directory structure.static Stringfingerprint(String fileOrDirectory) Produces fingerprint based on the contents of a single file or an entire directory tree.static Stringfingerprint(String fileOrDirectory, FingerprintOptions options) Produces fingerprint based on the contents of a single file or an entire directory tree.static StringThe real path of the system temp directory.static BooleanChecks whether a directory is empty.static StringCreates a unique temporary directory in the system temp directory.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
FileSystem
protected FileSystem(software.amazon.jsii.JsiiObjectRef objRef) -
FileSystem
protected FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FileSystem
@Stability(Stable) public FileSystem()
-
-
Method Details
-
copyDirectory
@Stability(Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir, @Nullable CopyOptions options, @Nullable String rootDir) Copies an entire directory structure.- Parameters:
srcDir- Source directory. This parameter is required.destDir- Destination directory. This parameter is required.options- options.rootDir- Root directory to calculate exclusions from.
-
copyDirectory
@Stability(Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir, @Nullable CopyOptions options) Copies an entire directory structure.- Parameters:
srcDir- Source directory. This parameter is required.destDir- Destination directory. This parameter is required.options- options.
-
copyDirectory
@Stability(Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir) Copies an entire directory structure.- Parameters:
srcDir- Source directory. This parameter is required.destDir- Destination directory. This parameter is required.
-
fingerprint
@Stability(Stable) @NotNull public static String fingerprint(@NotNull String fileOrDirectory, @Nullable FingerprintOptions options) Produces fingerprint based on the contents of a single file or an entire directory tree.The fingerprint will also include:
- An extra string if defined in
options.extra. - The set of exclude patterns, if defined in
options.exclude - The symlink follow mode value.
- Parameters:
fileOrDirectory- The directory or file to fingerprint. This parameter is required.options- Fingerprinting options.
- An extra string if defined in
-
fingerprint
Produces fingerprint based on the contents of a single file or an entire directory tree.The fingerprint will also include:
- An extra string if defined in
options.extra. - The set of exclude patterns, if defined in
options.exclude - The symlink follow mode value.
- Parameters:
fileOrDirectory- The directory or file to fingerprint. This parameter is required.
- An extra string if defined in
-
isEmpty
Checks whether a directory is empty.- Parameters:
dir- The directory to check. This parameter is required.
-
mkdtemp
Creates a unique temporary directory in the system temp directory.- Parameters:
prefix- A prefix for the directory name. This parameter is required.
-
getTmpdir
The real path of the system temp directory.
-