コード例 #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);
        }
コード例 #2
0
ファイル: VirtualDirectory.cs プロジェクト: GotenXiao/blink1
		/// <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;
		}