diff --git a/catvod/src/main/java/com/github/catvod/utils/Path.java b/catvod/src/main/java/com/github/catvod/utils/Path.java index 8e09e2ac6..29bebff5e 100644 --- a/catvod/src/main/java/com/github/catvod/utils/Path.java +++ b/catvod/src/main/java/com/github/catvod/utils/Path.java @@ -223,7 +223,10 @@ public class Path { if (parent != null) mkdir(parent); if (file.exists()) clear(file); if (file.createNewFile()) Logger.t(TAG).d("Create:" + file); - if (file.setWritable(true)) Shell.exec("chmod 777 " + file); + file.setReadable(true); + file.setWritable(true); + file.setExecutable(true); + Shell.exec("chmod 777 " + file); return file; } catch (IOException e) { e.printStackTrace();