internal void InitializeFrom(Win32Native.WIN32_FIND_DATA findData) { #if MONO throw new NotImplementedException(); #else _data = new Win32Native.WIN32_FILE_ATTRIBUTE_DATA(); _data.PopulateFrom(findData); _dataInitialised = 0; #endif }
public static bool GetFileStat(string path, out MonoIOStat stat, out MonoIOError error) { unsafe { fixed(char *pathChars = path) { return(GetFileStat(pathChars, out stat, out error)); } } }
internal static int FillAttributeInfo(String path, ref MonoIOStat data, bool tryagain, bool returnErrorOnNotFound) { if (tryagain) { throw new NotImplementedException(); } MonoIOError error; MonoIO.GetFileStat(path, out data, out error); if (!returnErrorOnNotFound && (error == MonoIOError.ERROR_FILE_NOT_FOUND || error == MonoIOError.ERROR_PATH_NOT_FOUND || error == MonoIOError.ERROR_NOT_READY)) { data = default(MonoIOStat); data.fileAttributes = (FileAttributes)(-1); return(0); } return((int)error); }
public extern static bool GetFileStat(string path, out MonoIOStat stat, out MonoIOError error);
internal static int FillAttributeInfo (String path, ref MonoIOStat data, bool tryagain, bool returnErrorOnNotFound) { if (tryagain) throw new NotImplementedException (); MonoIOError error; MonoIO.GetFileStat (path, out data, out error); if (!returnErrorOnNotFound && (error == MonoIOError.ERROR_FILE_NOT_FOUND || error == MonoIOError.ERROR_PATH_NOT_FOUND || error == MonoIOError.ERROR_NOT_READY)) { data = default (MonoIOStat); data.fileAttributes = (FileAttributes) (-1); return 0; } return (int) error; }
public extern static bool GetFileStat (string path, out MonoIOStat stat, out MonoIOError error);
private unsafe extern static bool GetFileStat(char *path, out MonoIOStat stat, out MonoIOError error);
internal void InitializeFrom(Win32Native.WIN32_FIND_DATA findData) { _data = new Win32Native.WIN32_FILE_ATTRIBUTE_DATA(); _data.PopulateFrom(findData); _dataInitialised = 0; }
public static bool GetFileStat (string path, out MonoIOStat stat, out MonoIOError error) { throw new System.NotImplementedException(); }
public static bool GetFileStat(string path, out MonoIOStat stat, out MonoIOError error) { throw new System.NotImplementedException(); }