Library for handling directories