Skip to content
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

Issue when try to move/rename file from FFat or LittleFS to SDcard or viceversa #17

Open
LupoAlba opened this issue Feb 20, 2025 · 3 comments
Assignees

Comments

@LupoAlba
Copy link

When i move/rename file from a FS FFat or LittleFS to SD the operation is not completed correctly.
The file still remain in the original path but the extension loss last two character.
Ex:
Active filesystems are: 0: Flash/LittleFS 1: SD-Card .
rename from LittleFS to SD of file in "0:/newfile0.txt" in this path "1:/newfile0.txt", the file is not moved in SD, still remain in the root of LittleFS, but the extension whas truncated from".txt" to ".t"

When i try to move from SD to FFat or LittleFS the file is moved but the extension whas truncated.

Ex:
Active filesystems are: 0: Flash/LittleFS 1: SD-Card .
rename from SD to LittleFS of file in "1:/newfile0.txt" in this path "0:/newfile0.txt", the file is correctly moved in LittleFS, but the extension whas truncated from".txt" to ".t"

Platform ESP32 wroom-32.

code used for add LittleFS:

if (LittleFS.begin()) { // Inizializzazione di LittleFS
if (!filemgr.AddFS(LittleFS, "Flash/LittleFS", false)) { // Aggiungi LittleFS al File Manager
Serial.println(F("Adding LittleFS failed.")); // Messaggio di errore se fallisce
} else {
Serial.println(F("LittleFS added successfully.")); // Conferma se è stato aggiunto correttamente
}
} else {
Serial.println(F("LittleFS File System not inited.")); // Errore se LittleFS non è stato inizializzato correttamente
}

code used for add SD FS:

#define SD_CLK 13
#define SD_MISO 33
#define SD_MOSI 15
#define SD_CS 32
SPIClass spiSD(VSPI);

spiSD.begin(SD_CLK, SD_MISO, SD_MOSI, SD_CS);
if(SD.begin(SD_CS, spiSD)){
if (!filemgr.AddFS(SD, "SD-Card", false)) {
Serial.println(F("Adding SD failed."));
}
Serial.println(F("SD added successfully"));
} else {
Serial.println(F("SD File System not inited."));
}

(you have made a GREAT job!)
Regards!

@holgerlembke holgerlembke self-assigned this Feb 23, 2025
@holgerlembke
Copy link
Owner

Next release will fix this.

@LupoAlba
Copy link
Author

LupoAlba commented Mar 1, 2025

yes! it work!
But now when i try to edit a .txt file, the "save" function didn' work, still remain "in progress" and is impossible to close the "edit window"; it appen in all type of file system.

Sometime a 6dot 2columns*3row appear on the screen.

Thanks

@holgerlembke holgerlembke reopened this Mar 1, 2025
@holgerlembke
Copy link
Owner

give 2.0.17 a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants