Lines Matching refs:link_path
202 def __init__(self, source_path, link_path): argument
206 self._link_path = link_path
239 def symlink(source_path, link_path): argument
242 unicode(link_path), unicode(source_path), flag):
261 for source_path, link_path in FILES.iteritems():
263 source_path, link_path, check_fn=os.path.isfile, check_msg='files')
333 for source, link_path in self._links_db.iteritems():
336 if os.path.islink(link_path) or sys.platform.startswith('win'):
339 logging.debug('Removing link to %s at %s', source, link_path)
341 if os.path.exists(link_path):
342 if sys.platform.startswith('win') and os.path.isdir(link_path):
343 subprocess.check_call(['rmdir', '/q', '/s', link_path],
346 os.remove(link_path)
350 def _ActionForPath(source_path, link_path=None, check_fn=None, argument
379 link_path = link_path or source_path
380 link_path = fix_separators(link_path)
395 if os.path.exists(link_path) or os.path.islink(link_path):
396 if os.path.islink(link_path):
397 actions.append(Remove(link_path, dangerous=False))
398 elif os.path.isfile(link_path):
399 actions.append(Remove(link_path, dangerous=True))
400 elif os.path.isdir(link_path):
401 actions.append(Rmtree(link_path))
403 raise LinkError('Don\'t know how to plan: %s' % link_path)
406 target_parent_dirs = os.path.dirname(link_path)
408 target_parent_dirs != link_path and
412 actions.append(Symlink(source_path, link_path))