Back to index

obnam  1.1
Public Member Functions
obnamlib.vfs_local.LocalFSFile Class Reference

List of all members.

Public Member Functions

def read
def write

Detailed Description

Definition at line 31 of file vfs_local.py.


Member Function Documentation

def obnamlib.vfs_local.LocalFSFile.read (   self,
  amount = -1 
)

Definition at line 33 of file vfs_local.py.

00033 
00034     def read(self, amount=-1):
00035         offset = self.tell()
00036         data = file.read(self, amount)
00037         if data:
00038             fd = self.fileno()
00039             obnamlib._obnam.fadvise_dontneed(fd, offset, len(data))
00040         return data

def obnamlib.vfs_local.LocalFSFile.write (   self,
  data 
)

Definition at line 41 of file vfs_local.py.

00041 
00042     def write(self, data):
00043         offset = self.tell()
00044         file.write(self, data)
00045         fd = self.fileno()
00046         obnamlib._obnam.fadvise_dontneed(fd, offset, len(data))
00047 


The documentation for this class was generated from the following file: