Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FileExists() [2/2]

static bool System.IO.FileSystem.FileExists ( string fullPath)
inlinestatic

Definition at line 43 of file FileSystem.cs.

44 {
46 if (FillAttributeInfo(fullPath, ref data, returnErrorOnNotFound: true) == 0 && data.dwFileAttributes != -1)
47 {
48 return (data.dwFileAttributes & 0x10) == 0;
49 }
50 return false;
51 }
static int FillAttributeInfo(string path, ref global::Interop.Kernel32.WIN32_FILE_ATTRIBUTE_DATA data, bool returnErrorOnNotFound)
Definition FileSystem.cs:36

References Interop.Kernel32.WIN32_FILE_ATTRIBUTE_DATA.dwFileAttributes, and System.IO.FileSystem.FillAttributeInfo().