84 bool chdir(
const char *path);
97 return tmp.
open(
this, path, O_RDONLY);
138 return dir.
open(
this, path, O_RDONLY) && dir.
ls(pr, flags);
149 bool mkdir(
const char *path,
bool pFlag =
true)
152 return sub.
mkdir(
vwd(), path, pFlag);
164 tmpFile.
open(
this, path, oflag);
177 return tmp.
open(
this, path, O_WRONLY) && tmp.
remove();
194 bool rename(
const char *oldPath,
const char *newPath)
211 return sub.
open(
this, path, O_RDONLY) && sub.
rmdir();
225 return file.
open(
this, path, O_WRONLY) && file.
truncate(length);
227#if ENABLE_ARDUINO_SERIAL
240 bool ls(uint8_t flags = 0)
242 return ls(&Serial, flags);
258 bool ls(
const char *path, uint8_t flags = 0)
260 return ls(&Serial, path, flags);
263#if ENABLE_ARDUINO_STRING
272 return chdir(path.c_str());
283 return exists(path.c_str());
293 bool mkdir(
const String &path,
bool pFlag =
true)
295 return mkdir(path.c_str(), pFlag);
305 return open(path.c_str(), oflag);
315 return remove(path.c_str());
331 bool rename(
const String &oldPath,
const String &newPath)
333 return rename(oldPath.c_str(), newPath.c_str());
345 return rmdir(path.c_str());
357 return truncate(path.c_str(), length);
int oflag_t
Definition FsApiConstants.h:45
Print print_t
Definition SysCall.h:66
BlockDeviceInterface class.
Definition BlockDeviceInterface.h:39
Basic file class.
Definition FatFile.h:112
bool rename(const char *newPath)
Definition FatFile.cpp:1070
bool ls(print_t *pr, uint8_t flags=0, uint8_t indent=0)
Definition FatFilePrint.cpp:91
bool truncate()
Definition FatFile.cpp:1519
bool openRoot(FatVolume *vol)
Definition FatFile.cpp:776
bool rmdir()
Definition FatFile.cpp:1198
bool mkdir(FatFile *dir, const char *path, bool pFlag=true)
Definition FatFile.cpp:364
bool remove()
Definition FatFileLFN.cpp:699
bool open(FatVolume *vol, const char *path, oflag_t oflag)
Definition FatFile.cpp:499
bool close()
Definition FatFile.cpp:124
Access FAT16 and FAT32 partitions on raw file devices.
Definition FatPartition.h:67
bool init(BlockDevice *dev, uint8_t part=1)
Definition FatPartition.cpp:468
Integration class for the FatLib library.
Definition FatVolume.h:39
File32 open(const String &path, oflag_t oflag=O_RDONLY)
Definition FatVolume.h:303
bool rmdir(const String &path)
Definition FatVolume.h:343
bool exists(const char *path)
Definition FatVolume.h:94
static FatVolume * m_cwv
Definition FatVolume.h:371
File32 open(const char *path, oflag_t oflag=O_RDONLY)
Definition FatVolume.h:161
void chvol()
Definition FatVolume.h:65
friend FatFile
Definition FatVolume.h:362
FatFile * vwd()
Definition FatVolume.h:367
bool ls(const char *path, uint8_t flags=0)
Definition FatVolume.h:258
bool rename(const char *oldPath, const char *newPath)
Definition FatVolume.h:194
bool chdir()
Definition FatVolume.h:74
static FatVolume * cwv()
Definition FatVolume.h:363
bool truncate(const char *path, uint32_t length)
Definition FatVolume.h:222
FatFile m_vwd
Definition FatVolume.h:372
bool truncate(const String &path, uint32_t length)
Definition FatVolume.h:355
bool remove(const String &path)
Definition FatVolume.h:313
bool rename(const String &oldPath, const String &newPath)
Definition FatVolume.h:331
bool mkdir(const String &path, bool pFlag=true)
Definition FatVolume.h:293
bool remove(const char *path)
Definition FatVolume.h:174
bool chdir(const String &path)
Definition FatVolume.h:270
bool ls(print_t *pr, const char *path, uint8_t flags)
Definition FatVolume.h:135
bool ls(uint8_t flags=0)
Definition FatVolume.h:240
bool mkdir(const char *path, bool pFlag=true)
Definition FatVolume.h:149
bool ls(print_t *pr, uint8_t flags=0)
Definition FatVolume.h:114
bool rmdir(const char *path)
Definition FatVolume.h:208
bool begin(BlockDevice *dev, bool setCwv=true, uint8_t part=1)
Definition FatVolume.h:48
bool exists(const String &path)
Definition FatVolume.h:281
FAT16/FAT32 file with Arduino Stream.
Definition FatFile.h:1104