Code: Select all
sFile.s = "C:\PROJECTS\M100\HARDWARE INFO\IGSTK44\Testing\.NoDartCoverage"
Debug GetFilePart(sFile, #PB_FileSystem_NoExtension)
Code: Select all
sFile.s = "C:\PROJECTS\M100\HARDWARE INFO\IGSTK44\Testing\.NoDartCoverage"
Debug GetFilePart(sFile, #PB_FileSystem_NoExtension)Code: Select all
.htaccess
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual toolThis is a file name. The dot in front stays for hidden!eddy wrote:on linux, there's a kind of file:Is it a file name or a special extension ?Code: Select all
.htaccess


I read it as it's a filename that contains a blank name ("") and an extension.IdeasVacuum wrote:Well, my example, .NoDartCoverage, is in fact a file name that has no extension and is preceded with a ".".


Code: Select all
sNewName$ = "new" + sOldName$
RenameFile(sOldName$, sNewName$)
I think it may still be a PB bug but the bug is with GetExtensionPart() and not GetFilePart().IdeasVacuum wrote:Well, my example, .NoDartCoverage, is in fact a file name that has no extension and is preceded with a ".".
So, therefore this is not a PB bug. It is a pita though, because it chokes 7zip
Code: Select all
Procedure testit(t.s)
Debug "complete file name --" + t + "--"
Debug "file part only --" + GetFilePart(t, #PB_FileSystem_NoExtension) + "--"
Debug "extension part only --" + GetExtensionPart(t.s) + "--"
EndProcedure
testit(".NoDartCoverage")