#NEWLINE# def relpath( self , filename ) : #NEWLINE# #INDENT# path = self . _normalize ( self . path ) #NEWLINE# if ( not filename . startswith ( path ) ) : #NEWLINE# #INDENT# raise DriverError ( "'{}' is not in the folder {}" . format ( filename , self . name ) ) #NEWLINE# #UNINDENT# return filename [ len ( path ) : ] . lstrip ( '/' )