]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/documents/res/app2.c
Import fatfs R0.13b
[z180-stamp.git] / fatfs / documents / res / app2.c
similarity index 84%
rename from fatfs/doc/res/app2.c
rename to fatfs/documents/res/app2.c
index 51085433641db7fde619c27e96a86cd531d5513b..3de3eee7df9604446e16cb7dc0ef5bada329f4be 100644 (file)
@@ -1,9 +1,11 @@
 /*------------------------------------------------------------/\r
 / Remove all contents of a directory\r
-/ This function works regardless of _FS_RPATH.\r
+/ This function works regardless of FF_FS_RPATH.\r
 /------------------------------------------------------------*/\r
 \r
 \r
+FILINFO fno;\r
+\r
 FRESULT empty_directory (\r
     char* path      /* Working buffer filled with start directory */\r
 )\r
@@ -11,11 +13,7 @@ FRESULT empty_directory (
     UINT i, j;\r
     FRESULT fr;\r
     DIR dir;\r
-    FILINFO fno;\r
 \r
-#if _USE_LFN\r
-    fno.lfname = 0; /* Disable LFN output */\r
-#endif\r
     fr = f_opendir(&dir, path);\r
     if (fr == FR_OK) {\r
         for (i = 0; path[i]; i++) ;\r
@@ -48,7 +46,7 @@ int main (void)
 {\r
     FRESULT fr;\r
     FATFS fs;\r
-    char buff[64];    /* Working buffer */\r
+    char buff[256];    /* Working buffer */\r
 \r
 \r
 \r