Package software.amazon.awscdk
Class FileSystem
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.FileSystem
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:12.951Z")
@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.*; FileSystem fileSystem = new FileSystem();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
FileSystem
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FileSystem
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyDirectory
(String srcDir, String destDir) Copies an entire directory structure.static void
copyDirectory
(String srcDir, String destDir, CopyOptions options) Copies an entire directory structure.static void
copyDirectory
(String srcDir, String destDir, CopyOptions options, String rootDir) Copies an entire directory structure.static String
fingerprint
(String fileOrDirectory) Produces fingerprint based on the contents of a single file or an entire directory tree.static String
fingerprint
(String fileOrDirectory, FingerprintOptions options) Produces fingerprint based on the contents of a single file or an entire directory tree.static String
The real path of the system temp directory.static Boolean
Checks whether a directory is empty.static String
Creates 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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.Line endings are converted from CRLF to LF.
The fingerprint will also include:
- An extra string if defined in
options.extra
. - 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.Line endings are converted from CRLF to LF.
The fingerprint will also include:
- An extra string if defined in
options.extra
. - 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.
-