rootPath = ~/Images/apn filePath = ~/Images/apn-reflex/xyz
if (filePath.startsWith(rootPath)) { ... }
That's the current code. The mistake is obvious, you already point to it above. I want to avoid accessing the filesystem here, just compare strings.
rootPath = ~/Images/apn apn-reflex/ xyz
filePath = ~/Images/
if (filePath. startsWith( rootPath) )
{
...
}
That's the current code. The mistake is obvious, you already point to it above.
I want to avoid accessing the filesystem here, just compare strings.