remote: Implement is_directory