Adding register_file and register_directory methods to the action registration mixin.