Exemple #1
0
        public FileEnum(string path, FileEnumFlags flags)
        {
            m_flags = flags;
            m_path  = path;

            m_openForReadHandle = FileSystemManager.AddToOpenListForRead(m_path);
            m_findFile          = new NativeFindFile(m_path, "*");
        }
Exemple #2
0
        public FileEnum(string path, FileEnumFlags flags)
        {
            this.m_flags = flags;
            this.m_path  = path;

            this.m_openForReadHandle = FileSystemManager.AddToOpenListForRead(this.m_path);
            this.m_findFile          = DriveInfo.GetForPath(this.m_path).Find(this.m_path, "*");
        }
Exemple #3
0
        public FileEnum(string path, FileEnumFlags flags)
        {
            m_flags = flags;
            m_path  = path;

            m_openForReadHandle = FileSystemManager.AddToOpenListForRead(m_path);
            m_findFile          = new NativeFindFile(m_path, "*");
        }
Exemple #4
0
        public FileEnumerator(string path, FileEnumFlags flags)
        {
            this.m_path  = Path.GetFullPath(path);
            this.m_flags = flags;

            if (!Directory.Exists(this.m_path))
            {
                throw new IOException("", (int)IOException.IOExceptionErrorCode.DirectoryNotFound);
            }
        }
Exemple #5
0
        public FileEnumerator(string path, FileEnumFlags flags)
        {
            m_path  = Path.GetFullPath(path);
            m_flags = flags;

            if (!Directory.Exists(m_path)) throw new IOException("", (int)IOException.IOExceptionErrorCode.DirectoryNotFound);
        }