Exemple #1
0
 /// <summary>
 /// Deletes an attribute for a file.
 /// </summary>
 /// <param name="this">The <see cref="FileInfo"/> referring to the file.</param>
 /// <param name="name">The name of the attribute to set.</param>
 /// <param name="data">The attribute data to write.</param>
 /// <exception cref="FileNotFoundException">If the file <paramref name="this"/> or argument does not exist.</exception>
 /// <exception cref="ArgumentException">
 /// If <paramref name="name"/> is longer than <see cref="Tsuku.MAX_NAME_LEN"/>.
 /// </exception>
 /// <exception cref="PlatformNotSupportedException">
 /// If the filesystem of the file <paramref name="this"/> does not support extended attributes on the
 /// current operating system.
 /// </exception>
 public static void DeleteAttribute(this FileInfo @this, string name)
 {
     DataAssertions.CheckReadValidity(name);
     if ([email protected])
     {
         throw new FileNotFoundException("The requested file does not exist.");
     }
     Tsuku.GetImplementation(@this).Delete(@this, name);
 }