diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-06-16 23:29:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-16 23:29:46 -0700 |
| commit | cde8000f663698dce127b3756d8ab10be3e3e553 (patch) | |
| tree | 2c1c833e95a05a53593a233ccdddecb26792cc4b | |
| parent | 6d388a34eb909e27acd508dc001ae1fe94a530de (diff) | |
| parent | 99bcb4e2a4162c4f0c67b170c5d6b80448df791a (diff) | |
Merge pull request #1948 from cpforbes/issue1937
Create a /lib directory when creating the filesystem.
| -rw-r--r-- | supervisor/shared/filesystem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index fa34ed0da..c50d7f4ee 100644 --- a/supervisor/shared/filesystem.c +++ b/supervisor/shared/filesystem.c @@ -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) { |
