complete filesystem api

Another minor feature.