Home » U++ Library support » FileSel&FileList, Path » FindFile (how this work in Local network?)
FindFile [message #59940] |
Mon, 05 June 2023 21:23  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
I could not succeed in local network use by testing an existing directory. Is something wrong?
String s="\\2019-Dell\\temp";
FindFile f(s);
Cout() << "resultado=" << f.IsFolder() << EOL;
Cout() << "resultado=" << f.IsDirectory() << EOL;
Cout() << "resultado=" << DirectoryExists(s) << EOL;
Thanks!
|
|
|
|
|
Re: FindFile [message #59943 is a reply to message #59942] |
Tue, 06 June 2023 17:15   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
I think FindFile is intended for looking up multiple files with desired patterns e.g. "\\\\2019-Dell\\temp\\*.*". If you just wish to make sure the share 'temp' on server '2019-Dell' exists, you should probably use DirectoryExists("\\\\2019-Dell\\temp").
Best regards,
Tom
|
|
|
Re: FindFile [message #59945 is a reply to message #59940] |
Tue, 06 June 2023 18:23  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
ok, it works as a wildcard! Looking at the documentation, it also works with "*" or "? Interestingly, the way to search a folder on your machine, differs from searching on the local network.
In the documentation they could point out that so on the local network when searching for a folder (and multiple files) the developer must use wildcards, which is not necessary on the Local machine!
Tks!
|
|
|
Goto Forum:
Current Time: Sun Apr 27 14:45:03 CEST 2025
Total time taken to generate the page: 0.03822 seconds
|