示例#1
0
        /// <summary>
        /// Adds a physical file to the directory.
        /// </summary>
        /// <param name="path">The full path of the file to add.</param>
        /// <returns>The newly created <see cref="DriveFile"/>.</returns>
        public DriveFile AddFile(string path)
        {
            DriveFile file = new DriveFile(path, this);

            AddFile(file);
            return(file);
        }
		/// <summary>
		/// Adds a physical file to the directory.
		/// </summary>
		/// <param name="path">The full path of the file to add.</param>
		/// <returns>The newly created <see cref="DriveFile"/>.</returns>
		public DriveFile AddFile(string path)
		{
			DriveFile file = new DriveFile(path, this);
			AddFile(file);
			return file;
		}