small fix to backups folder not existing

This commit is contained in:
Cameron Taylor 2023-12-15 21:46:09 -05:00
parent efd85e0e14
commit 4fc56a2280
2 changed files with 3 additions and 1 deletions

2
assets

@ -1 +1 @@
Subproject commit dfaf23dfa11ff67be2eea9113a80ff5dc0040f76
Subproject commit c354795f7f560fa096b855c6e6bca745f77fa414

View file

@ -315,6 +315,8 @@ class ChartEditorImportExportHandler
public static function getLatestBackupPath():Null<String>
{
#if sys
if (!sys.FileSystem.exists(BACKUPS_PATH)) sys.FileSystem.createDirectory(BACKUPS_PATH);
var entries:Array<String> = sys.FileSystem.readDirectory(BACKUPS_PATH);
entries.sort(SortUtil.alphabetically);