ranger.fsobject.fsobject
index
/home/hut/ranger/ranger/fsobject/fsobject.py

# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
Modules
       
time

 
Classes
       
ranger.shared.FileManagerAware(ranger.shared.Awareness)
FileSystemObject(ranger.shared.mimetype.MimeTypeAware, ranger.shared.FileManagerAware)
ranger.shared.mimetype.MimeTypeAware(__builtin__.object)
FileSystemObject(ranger.shared.mimetype.MimeTypeAware, ranger.shared.FileManagerAware)

 
class FileSystemObject(ranger.shared.mimetype.MimeTypeAware, ranger.shared.FileManagerAware)
    
Method resolution order:
FileSystemObject
ranger.shared.mimetype.MimeTypeAware
ranger.shared.FileManagerAware
ranger.shared.Awareness
__builtin__.object

Methods defined here:
__init__(self, path)
__repr__(self)
__str__(self)
returns a string containing the absolute path
get_description(self)
get_permission_string(self)
go(self)
enter the directory if the filemanager is running
is_older_than(self, seconds)
returns whether this object wasn't use()d in the last n seconds
load(self)
reads useful information about the filesystem-object from the
filesystem and caches it for later use
load_if_outdated(self)
Calls load() if the currently cached information is outdated
or nonexistant.
load_once(self)
calls load() if it has not been called at least once yet
mark(self, boolean)
set_mimetype(self)
assign attributes such as self.video according to the mimetype
use(self)
mark the filesystem-object as used at the current time

Data descriptors defined here:
filetype
shell_escaped_basename

Data and other attributes defined here:
accessible = False
audio = False
basename = None
basename_lower = None
container = False
content_loaded = False
dirname = None
document = False
exists = False
extension = None
force_load = False
image = False
infostring = None
is_directory = False
is_file = False
islink = False
last_used = None
loaded = False
marked = False
media = False
mimetype_tuple = ()
path = None
permissions = None
readlink = None
runnable = False
size = 0
stat = None
stopped = False
tagged = False
type = 'unknown'
video = False

Data descriptors inherited from ranger.shared.mimetype.MimeTypeAware:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from ranger.shared.mimetype.MimeTypeAware:
mimetypes = {}

Data and other attributes inherited from ranger.shared.FileManagerAware:
fm = None

 
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888