fix mistake in readdir so that nemo can open subdirectories
implement open and release