X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5:/fatfs/doc/en/getcwd.html..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/documents/doc/getcwd.html diff --git a/fatfs/doc/en/getcwd.html b/fatfs/documents/doc/getcwd.html similarity index 70% rename from fatfs/doc/en/getcwd.html rename to fatfs/documents/doc/getcwd.html index 52a7f3f..d5eab61 100644 --- a/fatfs/doc/en/getcwd.html +++ b/fatfs/documents/doc/getcwd.html @@ -1,7 +1,7 @@ - + @@ -13,7 +13,7 @@

f_getcwd

-

The f_getcwd function retrieves the current directory and current drive.

+

The f_getcwd function retrieves the current directory of the current drive.

 FRESULT f_getcwd (
   TCHAR* buff, /* [OUT] Buffer to return path name */
@@ -50,14 +50,26 @@ FRESULT f_getcwd (
 
 

Description

-

The f_getcwd function retrieves full path name of the current directory of the current drive. When _VOLUMES is larger than 1, a logical drive number is added to top of the path name.

+

The f_getcwd function retrieves full path name of the current directory of the current drive. When FF_VOLUMES >= 2, a heading drive prefix is added to the path name. The style of drive prefix is depends on FF_STR_VOLUME_ID.

Note: In this revision, this function cannot retrieve the current directory path on the exFAT volume. It always returns the root directory path.

QuickInfo

-

Available when _FS_RPATH == 2.

+

Available when FF_FS_RPATH == 2.

+
+ + +
+

Example

+
+    FRESULT fr;
+    TCHAR str[SZ_STR];
+
+    fr = f_getcwd(str, SZ_STR);  /* Get current directory path */
+
+