def resolve_slashed(self, path):
        """ Resolve symlinked directories if they end in a '/',
            remove trailing '/' otherwise.
        """
        if path.endswith(os.sep):
            path = path.rstrip(os.sep)
            if os.path.islink(path):
                real = os.path.realpath(path)
                self.LOG.debug('Resolved "%s/" to "%s"' % (path, real))
                path = real

        return path
def resolve_slashed ( self , path ) : if path . endswith ( os . sep ) : path = path . rstrip ( os . sep ) if os . path . islink ( path ) : real = os . path . realpath ( path ) self . LOG . debug ( 'Resolved "%s/" to "%s"' % ( path , real ) ) path = real return path
Resolve symlinked directories if they end in a '/',
            remove trailing '/' otherwise.