Beispiel #1
0
        internal static void EnsurePathExists(VirtualPath path, IList <IFileSystemOperation> operations)
        {
            for (int i = 0; i < path.Parts.Count(); i++)
            {
                string parent = path.PartialPath(i + 1).ToString();

                if (!VirtualDrive.ExistsDirectory(parent))
                {
                    operations.Add(Factory.CreateDirectoryCreate(parent));
                }
            }
        }