Add root flag to CardReader (#15275)

This commit is contained in:
Robby Candra
2019-09-17 05:49:55 +07:00
committed by Scott Lahteine
parent eb1a368277
commit 98233b1de0
4 changed files with 11 additions and 18 deletions

View File

@ -975,8 +975,7 @@ namespace ExtUI {
bool FileList::isAtRootDir() {
#if ENABLED(SDSUPPORT)
card.getWorkDirName();
return card.filename[0] == '/';
card.flag.workDirIsRoot;
#else
return true;
#endif