Пример #1
0
        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
        }
Пример #2
0
 public static bool GetFileStat(string path,
                                out MonoIOStat stat,
                                out MonoIOError error)
 {
     unsafe
     {
         fixed(char *pathChars = path)
         {
             return(GetFileStat(pathChars, out stat, out error));
         }
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
 public extern static bool GetFileStat(string path,
                                       out MonoIOStat stat,
                                       out MonoIOError error);
Пример #5
0
		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;
		}
Пример #6
0
		public extern static bool GetFileStat (string path,
						       out MonoIOStat stat,
						       out MonoIOError error);
Пример #7
0
 private unsafe extern static bool GetFileStat(char *path,
                                               out MonoIOStat stat,
                                               out MonoIOError error);
Пример #8
0
 internal void InitializeFrom(Win32Native.WIN32_FIND_DATA findData)
 {
     _data = new Win32Native.WIN32_FILE_ATTRIBUTE_DATA();
     _data.PopulateFrom(findData);
     _dataInitialised = 0;
 }
Пример #9
0
		public static bool GetFileStat (string path,
		out MonoIOStat stat,
		out MonoIOError error)
		{
			throw new System.NotImplementedException();
		}
Пример #10
0
 public static bool GetFileStat(string path,
                                out MonoIOStat stat,
                                out MonoIOError error)
 {
     throw new System.NotImplementedException();
 }