original_docstring: 
          Returns True if the file presence matches the fstat or state in
          opened, with priority to opened.
  
          That is: True if fstat says 'delete' and file is missing or
          True if fstat is not 'delete' and file exists.
          
docstring: Returns True if the file presence matches the fstat or state in
  opened, with priority to opened.
  
  That is: True if fstat says 'delete' and file is missing or
  True if fstat is not 'delete' and file exists.
docstring_tokens: Returns True if the file presence matches the fstat or state in opened with priority to opened . That is : True if fstat says ' delete ' and file is missing or True if fstat is not ' delete ' and file exists .
code: def f_existence(row):
          """
          Returns True if the file presence matches the fstat or state in
          opened, with priority to opened.
  
          That is: True if fstat says 'delete' and file is missing or
          True if fstat is not 'delete' and file exists.
          """
          action = _opened().get(row[F_PATH])
          should_exist = bool(row[F_CHECKSUM])
          if action:
              opened_for_delete = action.endswith('delete')
              if opened_for_delete:
                  should_exist = False
              else:
                  opened_for_add = action.endswith('add')
                  if opened_for_add:
                      should_exist = True
  
          return (os.path.lexists(row[F_PATH]) and not os.path.isdir(row[F_PATH])) == should_exist
code_tokens: def f_existence ( row ) : action = _opened ( ) . get ( row [ F_PATH ] ) should_exist = bool ( row [ F_CHECKSUM ] ) if action : opened_for_delete = action . endswith ( 'delete' ) if opened_for_delete : should_exist = False else : opened_for_add = action . endswith ( 'add' ) if opened_for_add : should_exist = True return ( os . path . lexists ( row [ F_PATH ] ) and not os . path . isdir ( row [ F_PATH ] ) ) == should_exist
short_docstring: Returns True if the file presence matches the fstat or state in
  opened, with priority to opened.
short_docstring_tokens: Returns True if the file presence matches the fstat or state in opened with priority to opened .
comment: """
          Returns True if the file presence matches the fstat or state in
          opened, with priority to opened.
  
          That is: True if fstat says 'delete' and file is missing or
          True if fstat is not 'delete' and file exists.
          """