/// <summary> /// Gets the <see cref="FileAttributes"/> of the directory or file. /// </summary> /// <param name="info">A directory or file. </param> /// <param name="attributes">New attributes to set.</param> /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns> public static void SetAttributes(QuickIOPathInfo info, FileAttributes attributes) { Contract.Requires(info != null); InternalQuickIO.SetAttributes(info.FullNameUnc, attributes); }
/// <summary> /// Gets the <see cref="FileAttributes"/> of the directory or file. /// </summary> /// <param name="path">The path to the directory or file. </param> /// <param name="attributes">New attributes to set.</param> /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns> public static void SetAttributes(string path, FileAttributes attributes) { Contract.Requires(!String.IsNullOrWhiteSpace(path)); InternalQuickIO.SetAttributes(path, attributes); }
/// <summary> /// Gets the <see cref="FileAttributes"/> of the directory or file. /// </summary> /// <param name="path">The path to the directory or file. </param> /// <param name="attributes">New attributes to set.</param> /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns> public static FileAttributes SetAttributes(string path, FileAttributes attributes) { return(InternalQuickIO.SetAttributes(path, attributes)); }