Home | History | Annotate | Download | only in webrtc

Lines Matching refs:link_path

223   def __init__(self, source_path, link_path):
227 self._link_path = link_path
260 def symlink(source_path, link_path):
263 unicode(link_path), unicode(source_path), flag):
282 for source_path, link_path in FILES.iteritems():
284 source_path, link_path, check_fn=os.path.isfile, check_msg='files')
354 for source, link_path in self._links_db.iteritems():
357 if os.path.islink(link_path) or sys.platform.startswith('win'):
360 logging.debug('Removing link to %s at %s', source, link_path)
362 if os.path.exists(link_path):
363 if sys.platform.startswith('win') and os.path.isdir(link_path):
364 subprocess.check_call(['rmdir', '/q', '/s', link_path],
367 os.remove(link_path)
371 def _ActionForPath(source_path, link_path=None, check_fn=None,
382 link_path: The location for the link to create. If omitted it will be the
400 link_path = link_path or source_path
401 link_path = fix_separators(link_path)
416 if os.path.exists(link_path) or os.path.islink(link_path):
417 if os.path.islink(link_path):
418 actions.append(Remove(link_path, dangerous=False))
419 elif os.path.isfile(link_path):
420 actions.append(Remove(link_path, dangerous=True))
421 elif os.path.isdir(link_path):
422 actions.append(Rmtree(link_path))
424 raise LinkError('Don\'t know how to plan: %s' % link_path)
427 target_parent_dirs = os.path.dirname(link_path)
429 target_parent_dirs != link_path and
433 actions.append(Symlink(source_path, link_path))