This returns zero:
Code: Select all
Debug CheckFilename("/home")
// Moved from "Bugs - Linux" to "Coding Questions" (Kiffi)
Code: Select all
Debug CheckFilename("/home")
The path / file may not exist (yet), it's a string coming in from a script and I'm trying to perform a sanity check to make sure it could reasonably be interpreted as a path for the current OS.
CheckFileName() is what you want in this case, but the "/" character isn't allowed on Windows, so I think this function disallows it globally. As it turns out though, that's also the character separator on Linux...the.weavster wrote: Sun Feb 23, 2025 9:03 pm The path / file may not exist (yet), it's a string coming in from a script and I'm trying to perform a sanity check to make sure it could reasonably be interpreted as a path for the current OS.