internal FSDirInfo(string name, DateTime ctime, IFSPermission permission) { this.FullName = name; this.Name = System.IO.Path.GetFileName(name); this.CreationTime = ctime; this.Permission = permission; }
internal FSFileInfo(string fullname, long len, FileAttributes attr, DateTime ctime, DateTime atime, DateTime wtime, IFSPermission permission) { this.FullName = fullname; this.Name = System.IO.Path.GetFileName(fullname); this.Extension = System.IO.Path.GetExtension(fullname); this.Directory = fullname.Remove(fullname.LastIndexOf(this.Name) - 1); this.Length = len; this.Attributes = attr; this.CreationTime = ctime; this.LastAccessTime = atime; this.LastWriteTime = wtime; this.Permission = Permission; }