summary refs log tree commit diff stats
path: root/doc/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/plugin_file_filter.py8
-rw-r--r--doc/examples/plugin_new_sorting_method.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/plugin_file_filter.py b/doc/examples/plugin_file_filter.py
index 965fa2e8..bad5a368 100644
--- a/doc/examples/plugin_file_filter.py
+++ b/doc/examples/plugin_file_filter.py
@@ -4,8 +4,8 @@
 # root directory.
 
 # Save the original filter function
-import ranger.fsobject.directory
-old_accept_file = ranger.fsobject.directory.accept_file
+import ranger.container.directory
+old_accept_file = ranger.container.directory.accept_file
 
 # Define a new one
 def custom_accept_file(fname, directory, hidden_filter, name_filter):
@@ -15,5 +15,5 @@ def custom_accept_file(fname, directory, hidden_filter, name_filter):
                return old_accept_file(fname, directory, hidden_filter, name_filter)
 
 # Overwrite the old function
-import ranger.fsobject.directory
-ranger.fsobject.directory.accept_file = custom_accept_file
+import ranger.container.directory
+ranger.container.directory.accept_file = custom_accept_file
diff --git a/doc/examples/plugin_new_sorting_method.py b/doc/examples/plugin_new_sorting_method.py
index 02abbc47..6b41b0e1 100644
--- a/doc/examples/plugin_new_sorting_method.py
+++ b/doc/examples/plugin_new_sorting_method.py
@@ -3,7 +3,7 @@
 # This plugin adds the sorting algorithm called 'random'.  To enable it, type
 # ":set sort=random" or create a key binding with ":map oz set sort=random"
 
-from ranger.fsobject.directory import Directory
+from ranger.container.directory import Directory
 from random import random
 Directory.sort_dict['random'] = lambda path: random()