/** * Check if the file is writable. * This method is similar to Java 7 * <code>java.nio.file.Path.checkAccess(AccessMode.WRITE)</code> * * @param fileName the file name * @return if the file is writable */ public static boolean canWrite(String fileName) { return FilePath.get(fileName).canWrite(); }