Detect physical file verses file in a library
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-04-24
01:20 PM
- last edited on
2023-07-13
04:28 PM
by
Doreena Deng
2015-04-24
01:20 PM
Hi, I am using file.Open (IO::File::ReadMode) to determine if a texture file exists on disk. However it appears to return NoError when a file which is embedded inside a .pla is specified. Is there some way to determine if the file is an actual file, or inside a .pla pls?
Thanks
Paul
Thanks
Paul
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-04-24 03:19 PM
2015-04-24
03:19 PM
Hi Paul,
IO::fileSystem.Contains should be used for checking if file exists.
Tibor
IO::fileSystem.Contains should be used for checking if file exists.
#include "FileSystem.hpp" IO::Location fileLoc (<path>); bool exists = false; GSErrCode err = IO::fileSystem.Contains (fileLoc, &exists); if (err != NoError) ErrorBeep ("Error in IO::fileSystem.Contains", err);Regards,
Tibor