Class PlexusIoResourceAttributeUtils
java.lang.Object
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlexusIoResourceAttributes
getFileAttributes
(File file) static PlexusIoResourceAttributes
getFileAttributes
(File file, boolean followLinks) static Map
<String, PlexusIoResourceAttributes> static Map
<String, PlexusIoResourceAttributes> getFileAttributesByPath
(File dir, boolean recursive) static Map
<String, PlexusIoResourceAttributes> getFileAttributesByPath
(File dir, boolean recursive, boolean followLinks) static boolean
isGroupExecutableInOctal
(int mode) static boolean
isGroupReadableInOctal
(int mode) static boolean
isGroupWritableInOctal
(int mode) static boolean
isOctalModeEnabled
(int mode, int targetMode) static boolean
isOwnerExecutableInOctal
(int mode) static boolean
isOwnerReadableInOctal
(int mode) static boolean
isOwnerWritableInOctal
(int mode) static boolean
isWorldExecutableInOctal
(int mode) static boolean
isWorldReadableInOctal
(int mode) static boolean
isWorldWritableInOctal
(int mode) static PlexusIoResourceAttributes
mergeAttributes
(PlexusIoResourceAttributes override, PlexusIoResourceAttributes base, PlexusIoResourceAttributes def)
-
Method Details
-
mergeAttributes
public static PlexusIoResourceAttributes mergeAttributes(PlexusIoResourceAttributes override, PlexusIoResourceAttributes base, PlexusIoResourceAttributes def) -
isGroupExecutableInOctal
public static boolean isGroupExecutableInOctal(int mode) -
isGroupReadableInOctal
public static boolean isGroupReadableInOctal(int mode) -
isGroupWritableInOctal
public static boolean isGroupWritableInOctal(int mode) -
isOwnerExecutableInOctal
public static boolean isOwnerExecutableInOctal(int mode) -
isOwnerReadableInOctal
public static boolean isOwnerReadableInOctal(int mode) -
isOwnerWritableInOctal
public static boolean isOwnerWritableInOctal(int mode) -
isWorldExecutableInOctal
public static boolean isWorldExecutableInOctal(int mode) -
isWorldReadableInOctal
public static boolean isWorldReadableInOctal(int mode) -
isWorldWritableInOctal
public static boolean isWorldWritableInOctal(int mode) -
isOctalModeEnabled
public static boolean isOctalModeEnabled(int mode, int targetMode) -
getFileAttributes
- Throws:
IOException
-
getFileAttributes
public static PlexusIoResourceAttributes getFileAttributes(File file, boolean followLinks) throws IOException - Throws:
IOException
-
getFileAttributesByPath
public static Map<String,PlexusIoResourceAttributes> getFileAttributesByPath(File dir) throws IOException - Throws:
IOException
-
getFileAttributesByPath
@Nonnull public static Map<String,PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull File dir, boolean recursive) throws IOException - Throws:
IOException
-
getFileAttributesByPath
@Nonnull public static Map<String,PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull File dir, boolean recursive, boolean followLinks) throws IOException - Throws:
IOException
-