예제 #1
0
        public static FileInfo[] GetFiles(DirectoryInfo aThis, [FieldAccess(Name = "$$Storage$$")] ref Directory aStorage)
        {
            return(null);

            /*
             * List<FileInfo> xFiles = new List<FileInfo>();
             * var xEntries = VFSManager.GetFiles(aStorage);
             *
             * foreach (FileSystem.Listing.Base xEntry in xEntries)
             * {
             *  xFiles.Add(new FileInfo(xEntry.Name));
             * }
             *
             * return xFiles.ToArray();
             *
             * //Alternative implementation
             * //var xEntries = VFSManager.GetFiles(aStorage);
             * //FileInfo[] files = new FileInfo[xEntries.Length];
             * //for (int i = 0; i < xEntries.Length; i++)
             * //{
             * //    files[i] = new FileInfo(xEntries[i].Name);
             * //}
             *
             * //return files;
             */
        }
예제 #2
0
 //[PlugMethod(Signature = "System_Void__System_IO_FileInfo__ctor_System_String_")]
 public static void Ctor(FileInfo aThis, [FieldAccess(Name = "$$Storage$$")] ref Directory aStorage, string aFile)
 {
     /*
      * //Determine if aFile is relative or absolute
      * string xFile;
      * if (aFile.IsRelativePath())
      *  xFile = Directory.GetCurrentDirectory() + aFile;
      * else
      *  xFile = aFile;
      *
      * var xEntry = VFSManager.GetDirectory(xFile);
      *
      * if (xEntry is FileSystem.Listing.Directory)
      * {
      *  aStorage = xEntry as FileSystem.Listing.Directory;
      * }
      */
 }
예제 #3
0
 public abstract List<Listing.Base> GetDirectoryListing(Directory baseDirectory);
예제 #4
0
 public abstract List <Listing.Base> GetDirectoryListing(Directory baseDirectory);
예제 #5
0
        //public static string FullName
        //{
        //    get
        //    {
        //        return ".FullName isn't implemented yet";
        //    }
        //}

        //public static string get_FullName(DirectoryInfo aThis, [FieldAccess(Name = "$$FullPath$$")] String aFullPath)
        //{
        //    //TODO: return FULL name
        //    return aFullPath;
        //}

        public static string get_Name(DirectoryInfo aThis, [FieldAccess(Name = "$$Storage$$")] ref Directory aStorage)
        {
            return(aStorage.Name);
        }
예제 #6
0
 public static bool get_Exists(DirectoryInfo aThis, [FieldAccess(Name = "$$Storage$$")] ref Directory aStorage)
 {
     //TODO: actually test if it exists
     return(aStorage != null);
 }