public void ReadDir() { FileSystemStorage fStore = new FileSystemStorage(); LocalFileData fDat = fStore.GetData("/test") as LocalFileData; Console.WriteLine("名称:{0}", fDat.Name); Console.WriteLine("标识:{0}", fDat.IdentityName); Console.WriteLine("创建时间:{0}", fDat.CreateDateTimeUTC.ToLocalTime()); Console.WriteLine("修改时间:{0}", fDat.ModifiedDateTimeUTC.ToLocalTime()); }
public void ReadFile() { FileSystemStorage fStore = new FileSystemStorage(); LocalFileData fDat = fStore.GetData("test.html") as LocalFileData; Console.WriteLine("名称:{0}", fDat.Name); Console.WriteLine("标识:{0}", fDat.IdentityName); Console.WriteLine("创建时间:{0}", fDat.CreateDateTimeUTC.ToLocalTime()); Console.WriteLine("修改时间:{0}", fDat.ModifiedDateTimeUTC.ToLocalTime()); Console.WriteLine("文本内容:{0}", System.Text.Encoding.Default.GetString(fDat.RawData)); }