fatfs v0.03 Sep 22, 2006:

- Added f_rename().
- Changed option _FS_MINIMUM to _FS_MINIMIZE.
This commit is contained in:
savelij13 committed 2025-09-11 08:56:57 +03:00
1 parent 86d6ced87e
commit 9a43e8b517
33 files changed
+926 -616

No files matched your search

+8 -8
View File
@@ -48,22 +48,22 @@ FRESULT f_chmod (
<dl class="ret">
<dt>FR_OK (0)</dt>
<dd>The function succeeded.</dd>
<dt>FR_NOFILE</dt>
<dt>FR_NO_FILE</dt>
<dd>Could not find the file.</dd>
<dt>FR_NOPATH</dt>
<dt>FR_NO_PATH</dt>
<dd>Could not find the path.</dd>
<dt>FR_INVALID_NAME</dt>
<dd>The file name is invalid.</dd>
<dt>FR_NOT_READY</dt>
<dd>The disk drive cannot work due to no medium in the drive or any other reason.</dd>
<dt>FR_WRITE_PROTECTED</dt>
<dd>The medium is in write protected.</dd>
<dd>The medium is write protected.</dd>
<dt>FR_RW_ERROR</dt>
<dd>Any error occured in low level disk I/O.</dd>
<dt>FR_INCORRECT_DISK_CHANGE</dt>
<dd>Incorrect disk removal, such as a medium change during any file is opend, has been occured.</dd>
<dd>Incorrect disk removal/change has occured.</dd>
<dt>FR_NOT_ENABLED</dt>
<dd>FatFs module has not been enabled.</dd>
<dd>FatFs module is not enabled.</dd>
<dt>FR_NO_FILESYSTEM</dt>
<dd>There is no valid FAT partition on the disk.</dd>
</dl>
@@ -72,15 +72,15 @@ FRESULT f_chmod (
<div class="para">
<h4>Description</h4>
<p>The f_chmod changes the attribute of a file or directory. This function is not supported in read-only and minimum configuration.</p>
<p>The f_chmod changes the attribute of a file or directory. This function is not supported in read-only configuration and minimization level of &gt;=1.</p>
</div>
<div class="para">
<h4>Sample Code</h4>
<h4>Example</h4>
<pre>
// Set read-only flag, clear archive flag and others are not changed.
f_chmod("/file.txt", AR_RDO, AR_RDO | AR_ARC);
f_chmod("file.txt", AR_RDO, AR_RDO | AR_ARC);
</pre>
</div>