Example #1
0
        private FileStruct method_9(string string_5)
        {
            FileStruct struct2 = new FileStruct();
            string     str     = string_5.Trim();

            struct2.Flags       = str.Substring(0, 10);
            struct2.IsDirectory = struct2.Flags[0] == 'd';
            str = str.Substring(11).Trim();
            this.method_10(ref str, ' ', 0);
            struct2.Owner = this.method_10(ref str, ' ', 0);
            struct2.Group = this.method_10(ref str, ' ', 0);
            this.method_10(ref str, ' ', 0);
            string oldValue = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)[2];

            if (oldValue.IndexOf(":") >= 0)
            {
                str = str.Replace(oldValue, DateTime.Now.Year.ToString());
            }
            struct2.CreateTime = DateTime.Parse(this.method_10(ref str, ' ', 8));
            struct2.Name       = str;
            return(struct2);
        }