Package comodit_client :: Package api :: Module compliance :: Class FileState

Class FileState


State of a file.

Instance Methods
 
show(self, indent=0)
Prints a user-friendly representation of this state to standard output.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

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

Properties
string creation_time
The creation time of the file.
string group
Group of the file.
string mode
Mode of the file (i.e.
string modification_time
The modification time of the file.
string owner
Owner of the file.
string path
Path to the file.
bool present
Tells whether the file is present on the system or not.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints a user-friendly representation of this state to standard output.

Parameters:
  • indent (int) - The number of spaces that will be put at the beginning of each printed line.

Property Details

creation_time

The creation time of the file. Date is formatted following the ISO 8601 norm.

Get Method:
unreachable.creation_time(self) - The creation time of the file.
Type:
string

group

Group of the file.

Get Method:
unreachable.group(self) - Group of the file.
Type:
string

mode

Mode of the file (i.e. its permissions in the form of 3 or 4 octal digits).

Get Method:
unreachable.mode(self) - Mode of the file (i.e.
Type:
string

modification_time

The modification time of the file. Date is formatted following the ISO 8601 norm.

Get Method:
unreachable.modification_time(self) - The modification time of the file.
Type:
string

owner

Owner of the file.

Get Method:
unreachable.owner(self) - Owner of the file.
Type:
string

path

Path to the file.

Get Method:
unreachable.path(self) - Path to the file.
Type:
string

present

Tells whether the file is present on the system or not.

Get Method:
unreachable.present(self) - Tells whether the file is present on the system or not.
Type:
bool