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


Class Variables [hide private]
  file_size = An unsigned long long stored in 8 bytes starting at ...
Size in bytes of the file
  file_type = An unsigned int stored in 4 bytes starting at byte 24
1 == file, 2 == dir
  ctime = An unsigned int stored in 4 bytes starting at byte 28
Creation time
  wtime = An unsigned int stored in 4 bytes starting at byte 32
Modification time
  permissions = An unsigned int stored in 4 bytes starting at byte 36
0 = default permissions, 4 = read only

Inherited from Answer: length, number


Properties [hide private]
  is_dir
True if path points to a directory, False if it points to a file.
  is_readonly
Whether this file is readonly.

Inherited from object: __class__


Class Variable Details [hide private]

file_size

Size in bytes of the file
Value:
An unsigned long long stored in 8 bytes starting at byte 16            
      

file_type

1 == file, 2 == dir
Value:
An unsigned int stored in 4 bytes starting at byte 24                  
      

ctime

Creation time
Value:
An unsigned int stored in 4 bytes starting at byte 28                  
      

wtime

Modification time
Value:
An unsigned int stored in 4 bytes starting at byte 32                  
      

permissions

0 = default permissions, 4 = read only
Value:
An unsigned int stored in 4 bytes starting at byte 36                  
      

Property Details [hide private]

is_dir

True if path points to a directory, False if it points to a file.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None                                                                  

is_readonly

Whether this file is readonly.
Get Method:
unreachable.fget(self)
Set Method:
unreachable.fset(self, val)
Delete Method:
None