Exemple #1
0
        /// <summary>
        /// 创建目录或者指定目录;
        /// </summary>
        /// <param name="directory">若目录不存在则创建</param>
        public static DirectoryContent Create(string directory)
        {
            Directory.CreateDirectory(directory);
            var content = new DirectoryContent(directory);

            return(content);
        }
Exemple #2
0
        public void TestDirectoryContent()
        {
            string directory = Path.Combine(RootDirectory, "Directory");

            using (DirectoryContent content = DirectoryContent.Create(directory))
            {
                ContentReadWriteTest(content);
            }
        }
Exemple #3
0
 public DirectoryContentEntry(DirectoryContent parent, string name)
 {
     Parent = parent;
     Name   = NormalizePath(name);
 }
Exemple #4
0
 internal Modification(string directory, ModificationDescription description)
 {
     BaseContent = new DirectoryContent(directory);
     Description = description;
 }