Package software.amazon.awssdk.crt.io
Class DirectoryEntry
java.lang.Object
software.amazon.awssdk.crt.io.DirectoryEntry
Supplied during calls to DirectoryTraversal.traverse() as each entry is encountered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetPath()booleanbooleanisFile()booleanwithFileSize(long fileSize) Sets the file size corresponding to this entrywithIsDirectory(boolean isDirectory) Sets the isDirectory flag, meaning this entry corresponds to a directorywithIsFile(boolean isFile) Sets the isFile flag, meaning this entry corresponds to a filewithIsSymLink(boolean isSymLink) Sets the isSymLink flag, meaning this entry corresponds to a symbolic linkSets the absolute path of this entrywithRelativePath(String relativePath) Sets the path relative to the current working directory
-
Constructor Details
-
DirectoryEntry
public DirectoryEntry()
-
-
Method Details
-
withPath
Sets the absolute path of this entry- Parameters:
path- path- Returns:
- this entry object
-
getPath
- Returns:
- the absolute path of this entry
-
withRelativePath
Sets the path relative to the current working directory- Parameters:
relativePath- relative path- Returns:
- this entry object
-
getRelativePath
- Returns:
- the path relative to the current working directory
-
withIsDirectory
Sets the isDirectory flag, meaning this entry corresponds to a directory- Parameters:
isDirectory- isDirectory- Returns:
- this entry object
-
isDirectory
public boolean isDirectory()- Returns:
- true if this entry corresponds to a directory
-
withIsSymLink
Sets the isSymLink flag, meaning this entry corresponds to a symbolic link- Parameters:
isSymLink- isSymLink- Returns:
- this entry object
-
isSymLink
public boolean isSymLink()- Returns:
- true if this entry corresponds to a symbolic link.
-
withIsFile
Sets the isFile flag, meaning this entry corresponds to a file- Parameters:
isFile- isFile- Returns:
- this entry object
-
isFile
public boolean isFile()- Returns:
- true if this entry corresponds to a file
-
withFileSize
Sets the file size corresponding to this entry- Parameters:
fileSize- file size in bytes- Returns:
- this entry object
-
getFileSize
public long getFileSize()- Returns:
- the size of the file
-