mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2025-02-19 21:32:28 +01:00
Ignore hidden files in the /regions directory (like .DS_Store)
This commit is contained in:
parent
5aceb81cfd
commit
6b9866a4c4
@ -112,7 +112,7 @@ public class ImportJob {
|
||||
// Import regions from each world
|
||||
for(File worldFolder : worldFolders) {
|
||||
// Skip files
|
||||
if(!worldFolder.isDirectory()) {
|
||||
if(!worldFolder.isDirectory() || worldFolder.isHidden()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -955,7 +955,7 @@ public class FileManager extends Manager {
|
||||
List<GeneralRegion> noRegion = new ArrayList<>();
|
||||
List<GeneralRegion> incorrectDuration = new ArrayList<>();
|
||||
for(File regionFile : regionFiles) {
|
||||
if(regionFile.exists() && regionFile.isFile()) {
|
||||
if(regionFile.exists() && regionFile.isFile() && !regionFile.isHidden()) {
|
||||
|
||||
// Load the region file from disk in UTF8 mode
|
||||
YamlConfiguration config;
|
||||
|
Loading…
Reference in New Issue
Block a user