Ejemplo n.º 1
0
		/// <summary>
		/// Adds a physical subdirectory to the directory with a specific name.
		/// </summary>
		/// <param name="alias">The name of the subdirectory to add as it will be seen in the directory.</param>
		/// <param name="path">The full path of the directory to add.</param>
		/// <returns>The newly created <see cref="DriveDirectory"/>.</returns>
		public DriveDirectory AddDirectory(string alias, string path)
		{
			DriveDirectory directory = new DriveDirectory(alias, path, this);
			CheckExistence(directory.Name);

			directories.Add(directory.Name, directory);

			return directory;
		}
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a physical subdirectory to the directory with a specific name.
        /// </summary>
        /// <param name="alias">The name of the subdirectory to add as it will be seen in the directory.</param>
        /// <param name="path">The full path of the directory to add.</param>
        /// <returns>The newly created <see cref="DriveDirectory"/>.</returns>
        public DriveDirectory AddDirectory(string alias, string path)
        {
            DriveDirectory directory = new DriveDirectory(alias, path, this);

            CheckExistence(directory.Name);

            directories.Add(directory.Name, directory);

            return(directory);
        }