add some comments

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-05-30 21:54:32 +03:00
parent 44a16c1ca1
commit d1286bbe90
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -831,14 +831,16 @@ QString RemoveInvalidPathChars(QString path, QChar replaceWith)
invalidChars = BAD_WIN_CHARS; invalidChars = BAD_WIN_CHARS;
#endif #endif
// the null character is ignored in this check as it was not a problem until now
switch (statFS(path).fsType) { switch (statFS(path).fsType) {
case FilesystemType::FAT: case FilesystemType::FAT:
invalidChars += BAD_FAT_CHARS; invalidChars += BAD_FAT_CHARS;
break; break;
case FilesystemType::NTFS: case FilesystemType::NTFS:
/* fallthrough */
case FilesystemType::REFS: // similar to NTFS(should be available only on windows)
invalidChars += BAD_NTFS_CHARS; invalidChars += BAD_NTFS_CHARS;
break; break;
// case FilesystemType::REFS:
// case FilesystemType::EXT: // case FilesystemType::EXT:
// case FilesystemType::EXT_2_OLD: // case FilesystemType::EXT_2_OLD:
// case FilesystemType::EXT_2_3_4: // case FilesystemType::EXT_2_3_4: