mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
Fix for image logging + file deletion routines
This commit is contained in:
@@ -319,7 +319,7 @@ string getDirectory(string filename)
|
||||
|
||||
string getFileType(string filename)
|
||||
{
|
||||
size_t lastpos = filename.find(".", 0);
|
||||
size_t lastpos = filename.rfind(".", filename.length());
|
||||
size_t neu_pos;
|
||||
while ((neu_pos = filename.find(".", lastpos + 1)) > -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user