public static bool Exists(string filename) { UInt32 attribs = PathInternal.GetFileAttributes(filename); return(attribs != PathInternal.DllImport.INVALID_FILE_ATTRIBUTES && (attribs & PathInternal.DllImport.FILE_ATTRIBUTE_DIRECTORY) > 0); }
public static bool SetFileAttributes(string filename, UInt32 attribs) { return(PathInternal.DllImport.SetFileAttributesW(PathInternal.ConvertToUnicodePath(filename), attribs)); }
public static bool Move(string source, string dest) { return(PathInternal.DllImport.MoveFileW(PathInternal.ConvertToUnicodePath(source), PathInternal.ConvertToUnicodePath(dest))); }
public static UInt32 GetFileAttributes(string filename) { return(PathInternal.DllImport.GetFileAttributesW(PathInternal.ConvertToUnicodePath(filename))); }