read-only file system abstraction for scala