This commit is contained in:
2023-11-27 16:21:40 +03:00
parent 0e17cff816
commit 7be3f9ccda
8 changed files with 50 additions and 5 deletions

View File

@@ -1134,5 +1134,17 @@ public class Utils {
if (project_data.exists())
FileUtils.forceDelete(project_data);
}
//--
public static boolean isVersion(File directory) throws Exception {
File[] files = directory.listFiles(File::isDirectory);
if (files!=null){
for (File file: files){
File data = new File(file, Constants.data);
if (data.exists())
return true;
}
}
return false;
}
}