Create a /lib directory when creating the filesystem.

This commit is contained in:
Craig Forbes 2019-06-14 15:41:32 -05:00
parent 6d388a34eb
commit 99bcb4e2a4
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ void filesystem_init(bool create_allowed, bool force_create) {
make_empty_file(&vfs_fat->fatfs, "/.Trashes");
make_empty_file(&vfs_fat->fatfs, "/.fseventsd/no_log");
// create empty lib directory
f_mkdir(&vfs_fat->fatfs, "/lib");
// and ensure everything is flushed
supervisor_flash_flush();
} else if (res != FR_OK) {