add methods about dir of `Library`