Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerlembke committed Feb 3, 2025
1 parent b18315b commit 06b3b87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32 File Manager for Generation Klick ESPFMfGK
version=2.0.12
version=2.0.13
author=Holger Lembke
maintainer=Holger Lembke <[email protected]>
sentence=Manage your ES32 file system content with a simple web based interface
Expand Down
6 changes: 5 additions & 1 deletion src/ESPFMfGK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ void ESPFMfGK::fileManagerJobber(void)
}
int fsi = getFileSystemIndex();

if (checkFileFlags(*fsinfo[fsi].filesystem, newfn, flagCanRename | flagIsValidTargetFilename) & flagCanRename == 0)
if ((checkFileFlags(*fsinfo[fsi].filesystem, newfn, flagCanRename | flagIsValidTargetFilename) & flagCanRename) == 0)
{
Serial.println("Ren: No access.");
Illegal404();
Expand Down Expand Up @@ -1376,10 +1376,12 @@ String ESPFMfGK::DeUmlautFilename(String fn)
// total/used are not exposed in FS::FS. Who knows why.
uint64_t ESPFMfGK::totalBytes(fs::FS *fs)
{
#ifdef SOC_SDMMC_HOST_SUPPORTED
if (fs == &SD_MMC)
{
return SD_MMC.totalBytes();
}
#endif
else if (fs == &SD)
{
return SD.totalBytes();
Expand All @@ -1401,10 +1403,12 @@ uint64_t ESPFMfGK::totalBytes(fs::FS *fs)
//*****************************************************************************************************
uint64_t ESPFMfGK::usedBytes(fs::FS *fs)
{
#ifdef SOC_SDMMC_HOST_SUPPORTED
if (fs == &SD_MMC)
{
return SD_MMC.usedBytes();
}
#endif
else if (fs == &SD)
{
return SD.usedBytes();
Expand Down
5 changes: 5 additions & 0 deletions src/ESPFMfGK.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ tab im editor zum echten tab umwandeln.
Changes
V2.0.7
+ Fix: another checkFileFlags() error...
+ add "SOC_SDMMC_HOST_SUPPORTED" for devices without this support
+ Arduino-release V2.0.13
V2.0.6
+ Fix: https://github.com/holgerlembke/ESPFMfGK/issues/13
+ Arduino-release V2.0.12
Expand Down

0 comments on commit 06b3b87

Please sign in to comment.