16 FsDefs::RESULT FsDir::open(
const char* path) {
17 return FsEntry::open(path,
false,
false,
true);
20 FsDefs::RESULT FsDir::create(
const char* path) {
21 return FsEntry::open(path,
false,
false,
true);
24 FsDefs::RESULT FsDir::close() {
26 return FsDefs::RES_ENTRY_NOT_OPEN;
30 return FsDefs::RES_SUCCESS;
33 FsDefs::RESULT FsDir::del(
const char* path) {
34 return FsEntry::del(path,
true);
37 FsDefs::RESULT FsDir::rewind() {
39 return FsDefs::RES_ENTRY_NOT_OPEN;
42 uint32_t lba = mPartition->getClusterBeginLba(mClusterBegin);
43 if (mCurrentLba != lba) {
44 mFlags.bits.sectorCacheInvalid =
true;
47 return FsDefs::RES_SUCCESS;
50 FsDefs::RESULT FsDir::getNextEntry(ENTRY_INFO* entryInfo) {
51 if (entryInfo->longFileName) {
52 free((
void*) entryInfo->longFileName);
53 entryInfo->longFileName = 0;
56 return FsDefs::RES_ENTRY_NOT_OPEN;
58 return Fs::getNextEntry(
this, entryInfo);