def load_current_dir_contents(self):
        """Load contents from current directory.

        A lot of setups are executed as well to guarantee
        the paths are ready to be browsed and de/selected.
        """
        ### if current dir doesn't exist anymore or isn't
        ### a directory, use the home directory instead
        if not self.current_dir.is_dir():
            self.current_dir = Path.home()

        ### gather directories and files from current dir
        ### sorting them alphabetically, folder first

        paths = sorted(
            (
                item
                for item in self.current_dir.iterdir()
                if not item.name.startswith(".")
            ),
            key=alphabetical_sorting_with_folders_first,
        )

        ## also insert the parent directory, at the beginning
        ## of the list, so the parent folder can be easily
        ## accessed by the user whenever desired
        paths.insert(0, self.current_dir.parent)

        ### reference paths in their own attribute
        self.paths = paths

        ### create a deque from the paths
        self.paths_deque = deque(paths)

        ### assign paths to the path objects
        self.update_path_objects_paths()

        ### create a new list containing only the
        ### selectable paths, that is, all paths, except
        ### the first one, since it is the parent directory
        ### and cannot be selected (it is just used as an
        ### easy way to access the parent folder)
        self.selectable_paths = paths[1:]

        ### create a new list in wherein to store the
        ### selection states (boolean values) of each
        ### selectable path

        self.selection_states = [False for _ in self.selectable_paths]

        ### since setting all selection states to False,
        ### as we just did above, make it so they are
        ### all deselected...

        ## make it so the file manager updates its path
        ## selection;
        self.fm.store_current_selection()

        ## update appearance on the path objects (so they
        ## appear deselected)
        self.update_path_objs_appearance()

        ## also update appearance of bookmark objs, in case
        ## the current dir is a bookmarked path as well
        ## (when we load the contents of a folder, if it is
        ## bookmarked, its bookmark item appears as though
        ## selected/highlighted)
        self.fm.bkm_panel.update_bookmark_objs_appearance()

        ### update text on the current path entry (if not already)

        string_dirpath = str(self.current_dir)

        if self.navigation_entry.get() != string_dirpath:
            self.navigation_entry.set(string_dirpath, False)

        ### set a value for the last selected index property,
        ### to keep track of the last selected index and
        ### update the outline rect attribute whenever such
        ### index changes
        self.last_selected_index = None
Load contents from current directory.

        A lot of setups are executed as well to guarantee
        the paths are ready to be browsed and de/selected.
        
nodezator/fileman/dirpanel/loadop.py