Esempio n. 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
        }
Esempio n. 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));
         }
     }
 }
Esempio n. 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);
        }
Esempio n. 4
0
 public extern static bool GetFileStat(string path,
                                       out MonoIOStat stat,
                                       out MonoIOError error);
Esempio n. 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;
		}
Esempio n. 6
0
		public extern static bool GetFileStat (string path,
						       out MonoIOStat stat,
						       out MonoIOError error);
Esempio n. 7
0
 private unsafe extern static bool GetFileStat(char *path,
                                               out MonoIOStat stat,
                                               out MonoIOError error);
Esempio n. 8
0
 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();
		}
Esempio n. 10
0
 public static bool GetFileStat(string path,
                                out MonoIOStat stat,
                                out MonoIOError error)
 {
     throw new System.NotImplementedException();
 }