This commit is contained in:
Roman Shevchenko
2011-12-13 13:12:33 +01:00
parent e6a53e5482
commit 29f1ebc2c6
@@ -1079,7 +1079,7 @@ public class FileUtil {
*/
public static void setExecutableAttribute(@NotNull String path, boolean executableFlag) throws IOException {
final File file = new File(path);
if (!file.setExecutable(!executableFlag) && file.canExecute() != executableFlag) {
if (!file.setExecutable(executableFlag) && file.canExecute() != executableFlag) {
LOG.warn("Can't set executable attribute of '" + path + "' to " + executableFlag);
}
}