mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
make it create the ranks folder
This commit is contained in:
parent
ebd86d8ec7
commit
a770fc36e9
@ -21,7 +21,13 @@ public class RankManager
|
||||
|
||||
public RankManager()
|
||||
{
|
||||
defaultRanks = new File(new File(Plex.get().getDataFolder() + File.separator + "ranks"), "default-ranks.json");
|
||||
File ranksFolder = new File(Plex.get().getDataFolder() + File.separator + "ranks");
|
||||
if (!ranksFolder.exists())
|
||||
{
|
||||
ranksFolder.mkdir();
|
||||
}
|
||||
|
||||
defaultRanks = new File(ranksFolder, "default-ranks.json");
|
||||
}
|
||||
|
||||
public void generateDefaultRanks()
|
||||
|
Loading…
Reference in New Issue
Block a user