@Generated(value="jsii-pacmak/1.38.0 (build 717bef2)", date="2021-10-08T18:43:51.878Z") @Stability(value=Stable) public class FileSystem extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
|
FileSystem() |
protected |
FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FileSystem(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static 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 |
getTmpdir()
The real path of the system temp directory.
|
static Boolean |
isEmpty(String dir)
Checks whether a directory is empty.
|
static String |
mkdtemp(String prefix)
Creates a unique temporary directory in the **system temp directory**.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected FileSystem(software.amazon.jsii.JsiiObjectRef objRef)
protected FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public FileSystem()
@Stability(value=Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir, @Nullable CopyOptions options, @Nullable String rootDir)
srcDir
- Source directory. This parameter is required.destDir
- Destination directory. This parameter is required.options
- options.rootDir
- Root directory to calculate exclusions from.@Stability(value=Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir, @Nullable CopyOptions options)
srcDir
- Source directory. This parameter is required.destDir
- Destination directory. This parameter is required.options
- options.@Stability(value=Stable) public static void copyDirectory(@NotNull String srcDir, @NotNull String destDir)
srcDir
- Source directory. This parameter is required.destDir
- Destination directory. This parameter is required.@Stability(value=Stable) @NotNull public static String fingerprint(@NotNull String fileOrDirectory, @Nullable FingerprintOptions options)
The fingerprint will also include:
options.extra
.options.exclude
fileOrDirectory
- The directory or file to fingerprint. This parameter is required.options
- Fingerprinting options.@Stability(value=Stable) @NotNull public static String fingerprint(@NotNull String fileOrDirectory)
The fingerprint will also include:
options.extra
.options.exclude
fileOrDirectory
- The directory or file to fingerprint. This parameter is required.@Stability(value=Stable) @NotNull public static Boolean isEmpty(@NotNull String dir)
dir
- The directory to check. This parameter is required.@Stability(value=Stable) @NotNull public static String mkdtemp(@NotNull String prefix)
prefix
- A prefix for the directory name. This parameter is required.@Stability(value=Stable) @NotNull public static String getTmpdir()
Copyright © 2021. All rights reserved.