--- /dev/null
+//------------------------------------------------------------------------------\r
+// \r
+// System.IO.Directory.cs \r
+//\r
+// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved\r
+// \r
+// Author: Jim Richardson, develop@wtfo-guru.com\r
+// Created: Monday, August 13, 2001 \r
+//\r
+//------------------------------------------------------------------------------\r
+\r
+using System;\r
+\r
+namespace System.IO\r
+{\r
+ /// <summary>\r
+ /// \r
+ /// </summary>\r
+ public sealed class Directory : Object\r
+ {\r
+\r
+ /// <summary>\r
+ /// Creates all directories not existing in path\r
+ /// </summary>\r
+ public static DirectoryInfo CreateDirectory(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Delete an empty directory\r
+ /// </summary>\r
+ public static void Delete(string path)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Delete a directory, and contents if bRecurse is true\r
+ /// </summary>\r
+ public static void Delete(string path, bool bRecurse)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Returns true if directory exists on disk\r
+ /// </summary>\r
+ public static bool Exists(string path)\r
+ {\r
+ return false;\r
+ }\r
+ /// <summary>\r
+ /// Returns the date and time the directory specified by path was created\r
+ /// </summary>\r
+ public static DateTime GetCreationTime(string path)\r
+ {\r
+ return DateTime.MinValue;\r
+ }\r
+ /// <summary>\r
+ /// Returns the date and time the directory specified by path was created\r
+ /// </summary>\r
+ public static string GetCurrentDirectory()\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of directories in the directory specified by path\r
+ /// </summary>\r
+ public static string[] GetDirectories(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of directories in the directory specified by path\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static string[] GetDirectories(string path, string mask)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns the root of the specified path\r
+ /// </summary>\r
+ public static string GetDirectoryRoot(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of files in the directory specified by path\r
+ /// </summary>\r
+ public static string[] GetFiles(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of files in the directory specified by path\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static string[] GetFiles(string path, string mask)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of filesystementries in the directory specified by path\r
+ /// </summary>\r
+ public static string[] GetFileSystemEntries(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of filesystementries in the directory specified by path\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static string[] GetFileSystemEntries(string path, string mask)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns the date and time the directory specified by path was last accessed\r
+ /// </summary>\r
+ public static DateTime GetLastAccessTime(string path)\r
+ {\r
+ return DateTime.MinValue;\r
+ }\r
+ /// <summary>\r
+ /// Returns the date and time the directory specified by path was last modified\r
+ /// </summary>\r
+ public static DateTime GetLastWriteTime(string path)\r
+ {\r
+ return DateTime.MinValue;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of logical drives on this system\r
+ /// </summary>\r
+ public static string[] GetLogicalDrives()\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns the parent directory of the directory specified by path\r
+ /// </summary>\r
+ public static DirectoryInfo GetParent(string path)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Moves a directory and its contents\r
+ /// </summary>\r
+ public static void Move(string srcDirName, string destDirName)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Sets the creation time of the directory specified by path\r
+ /// </summary>\r
+ public static void SetCreationTime(string path, DateTime creationTime)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Sets the current directory to the directory specified by path\r
+ /// </summary>\r
+ public static void SetCurrentDirectory(string path)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Sets the last access time of the directory specified by path\r
+ /// </summary>\r
+ public static void SetLastAccessTime(string path, DateTime accessTime)\r
+ {\r
+ }\r
+ /// <summary>\r
+ /// Sets the last write time of the directory specified by path\r
+ /// </summary>\r
+ public static void SetLastWriteTime(string path, DateTime modifiedTime)\r
+ {\r
+ }\r
+ }\r
+}\r
--- /dev/null
+//------------------------------------------------------------------------------\r
+// \r
+// System.IO.DirectoryInfo.cs \r
+//\r
+// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved\r
+// \r
+// Author: Jim Richardson, develop@wtfo-guru.com\r
+// Created: Monday, August 13, 2001 \r
+//\r
+//------------------------------------------------------------------------------\r
+\r
+using System;\r
+\r
+namespace System.IO\r
+{\r
+ /// <summary>\r
+ /// \r
+ /// </summary>\r
+ public sealed class DirectoryInfo : FileSystemInfo\r
+ {\r
+\r
+ public DirectoryInfo()\r
+ {\r
+ // \r
+ // TODO: Add constructor logic here\r
+ //\r
+ }\r
+\r
+ public override bool Exists\r
+ {\r
+ get\r
+ {\r
+ return false;\r
+ }\r
+ }\r
+\r
+ public override string Name\r
+ {\r
+ get\r
+ { //TODO: Implement this as per the documenation\r
+ return FullPath;\r
+ }\r
+ }\r
+\r
+ public DirectoryInfo Root\r
+ {\r
+ get\r
+ {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void Create()\r
+ {\r
+ }\r
+\r
+ DirectoryInfo CreateSubdirectory(string path)\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public override void Delete()\r
+ {\r
+ Directory.Delete(FullPath);\r
+ }\r
+\r
+ public void Delete(bool bRecurse)\r
+ {\r
+ Directory.Delete(FullPath, bRecurse);\r
+ }\r
+\r
+ /// <summary>\r
+ /// Returns an array of DirectoryInfos for subdirectories\r
+ /// </summary>\r
+ public DirectoryInfo[] GetDirectories()\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of DirectoryInfos\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static DirectoryInfo[] GetDirectories(string mask)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of FileInfo for subdirectories\r
+ /// </summary>\r
+ public FileInfo[] GetFiles()\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of FileInfo\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static FileInfo[] GetFiles(string mask)\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of FileSystemInfo for subdirectories\r
+ /// </summary>\r
+ public FileSystemInfo[] GetFileSystemInfos()\r
+ {\r
+ return null;\r
+ }\r
+ /// <summary>\r
+ /// Returns an array of FileSystemInfo\r
+ /// matching the filter specified by mask\r
+ /// </summary>\r
+ public static FileSystemInfo[] GetFileSystemInfos(string mask)\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public void MoveTo(string destDirName)\r
+ {\r
+ Directory.Move(FullName, destDirName);\r
+ }\r
+\r
+ public override string ToString()\r
+ {\r
+ return FullName;\r
+ }\r
+ }\r
+}\r
--- /dev/null
+//------------------------------------------------------------------------------
+//
+// System.IO.FileAttributes.cs
+//
+// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved
+//
+// Author: Jim Richardson, develop@wtfo-guru.com
+// Created: Monday, August 13, 2001
+//
+//------------------------------------------------------------------------------
+
+
+namespace System.IO
+{
+ public enum FileAttributes
+ {
+ Archive,
+ Compressed,
+ Device, // Reserved for future use.
+ Directory,
+ Encrypted,
+ Hidden,
+ Normal,
+ NotContentIndexed,
+ Offline,
+ ReadOnly,
+ ReparsePoint,
+ SparseFile,
+ System,
+ Temporary
+ }
+
+}
\ No newline at end of file
--- /dev/null
+//------------------------------------------------------------------------------\r
+// \r
+// System.IO.FileInfo.cs \r
+//\r
+// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved\r
+// \r
+// Author: Jim Richardson, develop@wtfo-guru.com\r
+// Created: Monday, August 13, 2001 \r
+//\r
+//------------------------------------------------------------------------------\r
+\r
+using System;\r
+\r
+namespace System.IO\r
+{\r
+ /// <summary>\r
+ /// \r
+ /// </summary>\r
+ public sealed class FileInfo : FileSystemInfo\r
+ {\r
+ public FileInfo()\r
+ {\r
+ // \r
+ // TODO: Add constructor logic here\r
+ //\r
+ }\r
+\r
+ public override bool Exists\r
+ {\r
+ get\r
+ {\r
+ return false;\r
+ }\r
+ }\r
+\r
+ public override string Name\r
+ {\r
+ get\r
+ { //TODO: Implement this as per the documenation\r
+ return FullPath;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Gets the parent directory info\r
+ /// </summary>\r
+ public DirectoryInfo Directory\r
+ {\r
+ get\r
+ {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the path of the file\r
+ /// </summary>\r
+ public string DirectoryName\r
+ {\r
+ get\r
+ {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the length of the file\r
+ /// </summary>\r
+ public long Length\r
+ {\r
+ get\r
+ {\r
+ return 0;\r
+ }\r
+ }\r
+\r
+ /* TODO: Uncomment / implement as classes become available\r
+ public StreamWriter AppendText()\r
+ {\r
+ }\r
+ \r
+\r
+ public FileStream Create()\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public StreamWriter CreateText()\r
+ {\r
+ return null;\r
+ }\r
+ \r
+ public FileStream Open(FileMode mode)\r
+ {\r
+ return Open(mode, FileAccess.ReadWrite);\r
+ }\r
+\r
+ public FileStream Open(FileMode mode, FileAccess access)\r
+ {\r
+ return Open(mode, access, FileShare.None);\r
+ }\r
+\r
+ public FileStream Open(FileMode mode, FileAccess access, FileShare share)\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public FileStream OpenRead()\r
+ { // TODO: find out what default share should be\r
+ return Open(FileMode.Open, FileAccess.Read, FileShare.Read);\r
+ }\r
+\r
+ public StreamReader OpenText()\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public FileStream OpenWrite()\r
+ {\r
+ return Open(FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None);\r
+ }\r
+ */\r
+\r
+ public FileInfo CopyTo(string destFile)\r
+ {\r
+ return CopyTo(destFile, false);\r
+ }\r
+\r
+ public FileInfo CopyTo(string destFile, bool bOverwrite)\r
+ {\r
+ return null;\r
+ }\r
+\r
+ public override void Delete()\r
+ {\r
+ }\r
+\r
+ public void MoveTo(string destName)\r
+ {\r
+ }\r
+ }\r
+}\r
--- /dev/null
+//------------------------------------------------------------------------------\r
+// \r
+// System.IO.FileSystemInfo.cs \r
+//\r
+// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved\r
+// \r
+// Author: Jim Richardson, develop@wtfo-guru.com\r
+// Created: Monday, August 13, 2001 \r
+//\r
+//------------------------------------------------------------------------------\r
+\r
+using System;\r
+\r
+namespace System.IO\r
+{\r
+ /// <summary>\r
+ /// \r
+ /// </summary>\r
+ public abstract class FileSystemInfo : MarshalByRefObject\r
+ {\r
+ private FileAttributes itsAttributes;\r
+ private DateTime itsCreated;\r
+ private DateTime itsLastAccess;\r
+ private DateTime itsLastWrite;\r
+ //private string itsFullName;\r
+ protected string FullPath;\r
+ protected string OriginalPath;\r
+\r
+ public FileSystemInfo()\r
+ {\r
+ // \r
+ // TODO: Add constructor logic here\r
+ //\r
+ }\r
+\r
+ public FileAttributes Attributes\r
+ {\r
+ get\r
+ {\r
+ return itsAttributes;\r
+ }\r
+ set\r
+ {\r
+ itsAttributes = value;\r
+ }\r
+ }\r
+\r
+ public DateTime CreationTime\r
+ {\r
+ get\r
+ {\r
+ return itsCreated;\r
+ }\r
+ set\r
+ {\r
+ itsCreated = value;\r
+ }\r
+ }\r
+\r
+ public abstract bool Exists {get;}\r
+ public abstract string Name {get;}\r
+ public abstract void Delete();\r
+\r
+ /// <summary>\r
+ /// Get the extension of this item\r
+ /// </summary>\r
+ public string Extension\r
+ {\r
+ get\r
+ {\r
+ return Path.GetExtension(FullPath);\r
+ }\r
+ }\r
+\r
+ public string FullName\r
+ {\r
+ get\r
+ {\r
+ return FullPath;\r
+ }\r
+ }\r
+\r
+ public DateTime LastAccessTime\r
+ {\r
+ get\r
+ {\r
+ return itsLastAccess;\r
+ }\r
+ }\r
+\r
+ public DateTime LastWriteTime\r
+ {\r
+ get\r
+ {\r
+ return itsLastWrite;\r
+ }\r
+ }\r
+\r
+ public override int GetHashCode()\r
+ {\r
+ return FullPath.GetHashCode();\r
+ }\r
+\r
+ public override bool Equals(object obj)\r
+ {\r
+ return false;\r
+ }\r
+\r
+ new public static bool Equals(object obj1, object obj2)\r
+ {\r
+ return false;\r
+ }\r
+\r
+ public void Refresh()\r
+ {\r
+ }\r
+\r
+ /* TODO: determine if we need these\r
+ public override ObjRef CreateObjRef(Type requestedType)\r
+ {\r
+ return null;\r
+ }\r
+ \r
+ /*public object GetLifeTimeService ()
+ {
+ return null;
+ }
+
+ public override object InitializeLifeTimeService ()
+ {
+ return null;
+ }\r
+ */\r
+ }\r
+}\r