[NFY] Define load_directory method.