Change directory attributes

Is it possible to change change directory’s attributes ?

Line with |= says attributes is read only.

private void CreateLibrary()
{
    var directory = new DirectoryInfo(_drive.Name);
    var libDir = directory.CreateSubdirectory(".Library");
    libDir.Attributes |= FileAttributes.Hidden;

   _libraryCreated = true;
}