Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: ATU on February 22, 2024, 06:03:57 PM
-
What is the proper way to check for the existence of a directory on the root of the SDcard? I tried it with the "\" and without and it still gives me a file doesn't exist.
-
What is the proper way to check for the existence of a directory on the root of the SDcard? I tried it with the "\" and without and it still gives me a file doesn't exist.
"\MyFolder" should work. No trailing backslash.
Did you see the example in the Help for FILEQUERY? Make sure the SD card media is installed and mounted (see logic in Stage S0).
-
I did exactly that. I created the directory fine, I just wanted to verify it was there. The instruction fails and I get a System warning, File not Found, but bit 4 is turned on for the returned attributes. What boxes need to be checked in the instruction?
-
I did exactly that. I created the directory fine, I just wanted to verify it was there. The instruction fails and I get a System warning, File not Found, but bit 4 is turned on for the returned attributes. What boxes need to be checked in the instruction?
I would not think any, but maybe that's the issue? File Attributes should show it's a Directory, so check that.
-
What am I doing wrong? The folder is there, it is empty. I only want to verify that the folder exists. File Attributes say it is a directory, yet the FILEQUERY instruction fails and throws a system warning that the file does not exist. See the attachments. I haven't worked on this is 2 years, so I probably am forgetting something. I also checked the strings, I don't see any NULLS or spaces at the end
-
Stick a file in that folder and see if FILEQUERY "succeeds"
-
Nope, same fault