add simple file/dir  functions created for gpkg to libericstools, since they're pretty generic and useful