Look at this simple line of code :
Code: Select all
Debug Hex(FileSize("*.jpg"))
Since when the parameter of FileSize() is not a filepath but more like a "mask" with wildcard allowed ?
Nothing about that on documentation.
Until now, I trusted FileSize() to know if a file exists or not (with -1 error code), but no I can't, even if the file "*.jpg" doesn't exist, it does not return -1.