Package libprs500 :: Module prstypes :: Class FileProperties
[hide private]
[frames] | no frames]

Class FileProperties

source code


Defines the structure of packets that contain size, date and permissions information about files/directories.

Instance Methods [hide private]

Inherited from Answer: __init__

Inherited from TransferBuffer: __add__, __getslice__, __str__, pack, unpack

Inherited from TransferBuffer (private): _normalize

Inherited from list: __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__


Class Methods [hide private]

Inherited from TransferBuffer: phex


Properties [hide private]
  file_size
The file size.
  is_dir
True if path points to a directory, False if it points to a file.
  ctime
The creation time of this file/dir as an epoch (seconds since Jan 1970).
  wtime
The modification time of this file/dir as an epoch (seconds since Jan 1970).
  is_readonly
Whether this file is readonly.

Inherited from Answer: id

Inherited from object: __class__


Property Details [hide private]

file_size

The file size. unsigned long long stored in 8 bytes at byte 16.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

is_dir

True if path points to a directory, False if it points to a file. unsigned int stored in 4 bytes at byte 24.

Value of 1 == file and 2 == dir
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

ctime

The creation time of this file/dir as an epoch (seconds since Jan 1970). unsigned int stored in 4 bytes at byte 28.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

wtime

The modification time of this file/dir as an epoch (seconds since Jan 1970). unsigned int stored in 4 bytes at byte 32
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

is_readonly

Whether this file is readonly. unsigned int stored in 4 bytes at byte 36.

A value of 0 corresponds to read/write and 4 corresponds to read-only. The device doesn't send full permissions information.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None