Class AttributeUtils
java.lang.Object
org.codehaus.plexus.components.io.attributes.AttributeUtils
- Author:
- Kristian Rosenvold
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static BasicFileAttributes
getFileAttributes
(File file) static BasicFileAttributes
getFileAttributes
(Path path) static FileOwnerAttributeView
getFileOwnershipInfo
(File file) static long
getLastModified
(File file) static Set
<PosixFilePermission> getPermissions
(int mode) static PosixFileAttributes
getPosixFileAttributes
(File file) static boolean
-
Constructor Details
-
AttributeUtils
public AttributeUtils()
-
-
Method Details
-
getLastModified
-
chmod
- Throws:
IOException
-
getPermissions
-
getPosixFileAttributes
@Nonnull public static PosixFileAttributes getPosixFileAttributes(@Nonnull File file) throws IOException - Throws:
IOException
-
getFileAttributes
- Throws:
IOException
-
getFileAttributes
- Throws:
IOException
-
isUnix
-
getFileOwnershipInfo
@Nullable public static FileOwnerAttributeView getFileOwnershipInfo(@Nonnull File file) throws IOException - Throws:
IOException
-