Merge pull request #1948 from cpforbes/issue1937

Create a /lib directory when creating the filesystem.
This commit is contained in:
Scott Shawcroft 2019-06-16 23:29:46 -07:00 committed by GitHub
commit cde8000f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, "/.Trashes");
make_empty_file(&vfs_fat->fatfs, "/.fseventsd/no_log"); make_empty_file(&vfs_fat->fatfs, "/.fseventsd/no_log");
// create empty lib directory
f_mkdir(&vfs_fat->fatfs, "/lib");
// and ensure everything is flushed // and ensure everything is flushed
supervisor_flash_flush(); supervisor_flash_flush();
} else if (res != FR_OK) { } else if (res != FR_OK) {