ranger.ext.get_executables
index
../../ranger/ext/get_executables.py

# Copyright (C) 2009-2013  Roman Zimbelmann <hut@lavabit.com>
# This software is distributed under the terms of the GNU GPL version 3.

 
Functions
       
get_executables()
Return all executable files in $PATH. Cached version.
get_executables_uncached(*paths)
Return all executable files in each of the given directories.
 
Looks in $PATH by default.
listdir(...)
listdir(path='.') -> list_of_filenames
 
Return a list containing the names of the files in the directory.
The list is in arbitrary order.  It does not include the special
entries '.' and '..' even if they are present in the directory.
 
path can be specified as either str or bytes.  If path is bytes,
  the filenames returned will also be bytes; in all other circumstances
  the filenames returned will be str.
On some platforms, path may also be specified as an open file descriptor;
  the file descriptor must refer to a directory.
  If this functionality is unavailable, using it raises NotImplementedError.
stat(path, *, dir_fd=None, follow_symlinks=True)
Perform a stat system call on the given path.
 
  path
    Path to be examined; can be string, bytes, or open-file-descriptor int.
  dir_fd
    If not None, it should be a file descriptor open to a directory,
    and path should be a relative string; path will then be relative to
    that directory.
  follow_symlinks
    If False, and the last element of the path is a symbolic link,
    stat will examine the symbolic link itself instead of the file
    the link points to.
 
dir_fd and follow_symlinks may not be implemented
  on your platform.  If they are unavailable, using them will raise a
  NotImplementedError.
 
It's an error to use dir_fd or follow_symlinks when specifying path as
  an open file descriptor.

 
Data
        S_IFREG = 32768
S_IXOTH = 1
environ = environ({'SHELL': '/bin/bash', 'TIGRC_USER': '/h...'urxvt', 'EDITOR': 'vim', 'PROMPT_DIRTRIM': '4'})