open, read, write and list_root_directory functions working