Hello Please find attached the french translations. Regards, Victor
Call to undefined function split() in /var/www/openmediavault/web/inc/frm_interface.php:90
Hello, Please find attached the FileFind.cpp I use in production to ignore duplicated files and the output result. I know it just fixes the symptoms of the issue and not the cause. I hope updating from RHEL 6 to RHEL 7 oneday will fix the readdir with NFS issue. Victor
Ok You're right it should be checked in early stages. I can't fix the NFS issues with the readdir functions. I will try to check for duplicate in FileFind.cpp
Hi Igor, I'm not a C++ expert, but I tried for (i = 0; i + 1 < numDirItems; i++) { const UString &s1 = dirNames[dirIndices[i]]; const UString &s2 = dirNames[dirIndices[i + 1]]; if (CompareFileNames(s1, s2) == 0) { PrintError(k_Duplicate_inDir_Message, s1, s2); dirNames.Delete(i); dirItems.Items.Delete(i); numDirItems--; i--; } } but the dirItems object is a const so I can't remove the duplicate file. What would you dou ?
Hi Igor, I'm not a C++ expert, but I tried for (i = 0; i + 1 < numDirItems; i++) { const UString &s1 = dirNames[dirIndices[i]]; const UString &s2 = dirNames[dirIndices[i + 1]]; if (CompareFileNames(s1, s2) == 0) { PrintError(k_Duplicate_inDir_Message, s1, s2); dirNames.Delete(i); dirItems.Items.DeleteFrom(i); numDirItems--; i--; } } but the dirItems object is a const so I can't remove the duplicate file. What would you dou ?
I tried for (i = 0; i + 1 < numDirItems; i++) { const UString &s1 = dirNames[dirIndices[i]]; const UString &s2 = dirNames[dirIndices[i + 1]]; if (CompareFileNames(s1, s2) == 0) { PrintError(k_Duplicate_inDir_Message, s1, s2); dirNames.Delete(i); dirItems.Items.DeleteFrom(i); numDirItems--; i--; } } but dirItems is a const :-(
Ok Maybe it is possible to just print the error and skip the file when (CompareFileNames(s1, s2) == 0) instead ?