summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 464d10ffc6..e24b44ce1f 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -249,6 +249,9 @@ int close(int fd)
rc = fsync(fd);
if (rc < 0)
return rc * 10 - 3;
+#ifdef HAVE_DIRCACHE
+ dircache_update_filesize(fd, file->size, file->fatfile.firstcluster);
+#endif
}
file->busy = false;