imbault Well-Known Member Licensed User Longtime User Dec 23, 2019 #1 Hi File.Exists(File.DirApp, "") returns true, bug? Thanks
alwaysbusy Expert Licensed User Longtime User Dec 23, 2019 #2 Don't think so. It checks if the folder exists, which it does.
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2019 #3 No. File.Exists will return true if the specified path exists, even if it is a folder.
alwaysbusy Expert Licensed User Longtime User Dec 23, 2019 #4 Well, that was 3 reactions in the same minute
imbault Well-Known Member Licensed User Longtime User Dec 23, 2019 #5 Sorry but the online help says: "Return true if the specified FileName exists in the specified Dir." or in my exemple filename is ""
Sorry but the online help says: "Return true if the specified FileName exists in the specified Dir." or in my exemple filename is ""
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2019 #6 You are correct that the documentation is not clear enough. I've changed it to: "Returns true if the specified FileName exists (file or folder) in the specified Dir." The full path is created by combining Dir and FileName as if you called File.Combine. There are some exceptions related to special virtual folders.
You are correct that the documentation is not clear enough. I've changed it to: "Returns true if the specified FileName exists (file or folder) in the specified Dir." The full path is created by combining Dir and FileName as if you called File.Combine. There are some exceptions related to special virtual folders.