SdFs
|
exFAT volume. More...
#include <ExFatVolume.h>
Public Member Functions | |
bool | begin (BlockDevice *dev, bool setCwv=true, uint8_t part=0) |
uint32_t | bytesPerCluster () |
uint8_t | bytesPerClusterShift () |
uint16_t | bytesPerSector () |
uint8_t | bytesPerSectorShift () |
uint8_t * | cacheClear () |
bool | chdir () |
bool | chdir (const char *path) |
void | chvol () |
uint32_t | clusterCount () |
uint32_t | clusterHeapStartSector () |
bool | exists (const ExChar_t *path) |
uint32_t | fatLength () |
uint32_t | fatStartSector () |
uint8_t | fatType () const |
uint32_t | freeClusterCount () |
bool | init (BlockDevice *dev, uint8_t part) |
void | ls (print_t *pr, uint8_t flags=0) |
void | ls (print_t *pr, const ExChar_t *path, uint8_t flags) |
bool | mkdir (const ExChar_t *path, bool pFlag=true) |
bool | remove (const ExChar_t *path) |
bool | rename (const ExChar_t *oldPath, const ExChar_t *newPath) |
bool | rmdir (const ExChar_t *path) |
uint32_t | rootDirectoryCluster () |
uint32_t | rootLength () |
uint32_t | sectorsPerCluster () |
uint8_t | sectorsPerClusterShift () |
bool | truncate (const ExChar_t *path, uint64_t length) |
Static Public Member Functions | |
static ExFatVolume * | cwv () |
exFAT volume.
Copyright (c) 20011-2017 Bill Greiman This file is part of the SdFs library for SD memory cards.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
inline |
Initialize an FatVolume object.
[in] | dev | Device block driver. |
[in] | setCwv | Set current working volume if true. |
[in] | part | partition to initialize. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Clear the cache and returns a pointer to the cache. Not for normal apps.
|
inline |
Set volume working directory to root.
bool ExFatVolume::chdir | ( | const char * | path | ) |
Set volume working directory.
[in] | path | Path for volume working directory. |
|
inline |
Change global working volume to this volume.
|
inlineinherited |
|
inlineinherited |
|
inlinestatic |
|
inline |
Test for the existence of a file.
[in] | path | Path of the file to be tested for. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
Initialize a exFAT partition.
[in] | dev | The blockDevice for the partition. |
[in] | part | The partition to be used. Legal values for part are 1-4 to use the corresponding partition on a device formatted with a MBR, Master Boot Record, or zero if the device is formatted as a super floppy with the FAT boot sector in sector zero. |
|
inline |
List the directory contents of the root directory.
[in] | pr | Print stream for list. |
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inline |
List the directory contents of a directory.
[in] | pr | Print stream for list. |
[in] | path | directory to list. |
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inline |
Make a subdirectory in the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
[in] | pFlag | Create missing parent directories if true. |
|
inline |
Remove a file from the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the file. |
|
inline |
Rename a file or subdirectory.
[in] | oldPath | Path name to the file or subdirectory to be renamed. |
[in] | newPath | New path name of the file or subdirectory. |
The newPath object must not exist before the rename call.
The file to be renamed must not be open. The directory entry may be moved and file system corruption could occur if the file is accessed by a file object that was opened before the rename() call.
|
inline |
Remove a subdirectory from the volume's working directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
The subdirectory file will be removed only if it is empty.
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Truncate a file to a specified length. The current file position will be at the new EOF.
[in] | path | A path with a valid 8.3 DOS name for the file. |
[in] | length | The desired length for the file. |