Package conduit :: Package datatypes :: Module File :: Class ProxyFile
[hide private]

Class ProxyFile

source code


Pretends to be a file for the sake of comparison and transer. Typically located on a remote, read only resource, such as http://. Once transferred to the local filesystem, it behaves just like a file.

Instance Methods [hide private]
 
__init__(self, URI, name, modified, size, **kwargs)
File constructor.
source code

Inherited from File: __getstate__, __setstate__, compare, delete, exists, force_new_file_extension, force_new_filename, force_new_mtime, get_contents_as_text, get_filename, get_filename_and_extension, get_hash, get_local_uri, get_mimetype, get_mtime, get_relative_uri, get_size, is_directory, is_local, set_from_instance, set_mtime, to_tempfile, transfer

Inherited from DataType.DataType: get_UID, get_open_URI, get_rid, get_snippet, get_tags, get_type, set_UID, set_open_URI, set_tags

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from File: _name_

Instance Variables [hide private]

Inherited from DataType.DataType: UID, URI

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, URI, name, modified, size, **kwargs)
(Constructor)

source code 
File constructor. Compulsory args
  • URI: The title of the note
Optional kwargs
  • basepath: The files basepath
  • group: A named group to which this file belongs
Overrides: File.__init__
(inherited documentation)