Directory: Use libnstd types
File: Add isOpen method