8000 SD Filesystem compatible with 8266 File, using latest SdFat by earlephilhower · Pull Request #5525 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

SD Filesystem compatible with 8266 File, using latest SdFat #5525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Mar 6, 2019
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4556403
Add a FAT filesystem for SD cards to Arduino FS
earlephilhower Dec 19, 2018
1b95e5d
Add a FSConfig and SDFSConfig param to FS.begin()
Jan 2, 2019
241d0ff
Add FS::setConfig to set FS-specific options
Jan 3, 2019
2b49e7a
Merge branch 'master' into SDFS
earlephilhower Jan 9, 2019
7fcbfdc
Fix platformio.sh test skipping merge error
Jan 9, 2019
a4dadb2
Merge branch 'master' into SDFS
earlephilhower Jan 16, 2019
edd9476
Fix merge error with SPIFFS_MOCK
earlephilhower Jan 17, 2019
9a82f00
Merge branch 'master' into SDFS
earlephilhower Jan 18, 2019
dc977b0
Merge branch 'master' into SDFS
earlephilhower Jan 28, 2019
8000 ef2374c
Update to fix SPI transferBytes issue
earlephilhower Jan 28, 2019
c8acb84
Add ::truncate to File interface
earlephilhower Jan 28, 2019
d215b66
Merge branch 'master' into SDFS
earlephilhower Feb 1, 2019
ce148dd
Merge branch 'master' of https://github.com/esp8266/Arduino into SDFS
earlephilhower Feb 8, 2019
0a0bbc4
Merge branch 'master' into SDFS
earlephilhower Feb 8, 2019
652415d
Merge branch 'master' into SDFS
d-a-v Feb 18, 2019
85946ee
Merge branch 'master' into SDFS
d-a-v Feb 21, 2019
6b0a3f4
Update comments and MAX_PATH to 260
earlephilhower Feb 25, 2019
69bebd7
Merge branch 'master' into SDFS
earlephilhower Feb 25, 2019
1bc7377
Use polledTimeout for formatting yields, cleanup
earlephilhower Feb 27, 2019
cc3cc70
Add assert on illegal file open mode
earlephilhower Feb 27, 2019
e0c26bd
Merge branch 'master' into SDFS
earlephilhower Feb 27, 2019
35ec9ec
Make setConfig take const& ref, cleaner code
earlephilhower Feb 27, 2019
e53f26c
Merge branch 'master' into SDFS
devyte Mar 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update comments and MAX_PATH to 260
  • Loading branch information
earlephilhower committed Feb 25, 2019
commit 6b0a3f4fc42def5014d0d52d3b97da49d80da37a
9 changes: 7 additions & 2 deletions libraries/SDFS/src/SDFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ class SDFSFileImpl : public FileImpl
} else {
const char *p = _name.get();
const char *slash = strrchr(p, '/');
// For names w/o any path elements, return directly
// If there are slashes, return name after the last slash
// (note that strrchr will return the address of the slash,
// so need to increment to ckip it)
return (slash && slash[1]) ? slash + 1 : p;
}
}
Expand Down Expand Up @@ -323,8 +327,9 @@ class SDFSDirImpl : public DirImpl
if (!_valid) {
return FileImplPtr();
}
char tmpName[128];
snprintf(tmpName, sizeof(tmpName), "%s%s%s", _dirPath.get() ? _dirPath.get() : "", _dirPath.get()&&_dirPath.get()[0]?"/":"", _lfn);
// MAX_PATH on FAT32 is potentially 260 bytes per most implementations
char tmpName[260];
snprintf(tmpName, sizeof(tmpName), "%s%s%s", _dirPath.get() ? _dirPath.get() : "", _dirPath.get()&&_dirPath.get()[0]?"/":"", _lfn);
return _fs->open((const char *)tmpName, openMode, accessMode);
}

Expand Down
0