The Library of Alexandria was actually partly burned several times. Usually by accident. However it was rebuilt and refurnished with books until the last time when it was burned by the Caliph of Baghdad.
Well, they may have rebuilt a library in Alexandria by the time the muslims got there, but it wasn’t “The Library of Alexandria”, containing the ancient books like those of Homer, since that was already destroyed centuries before.