def tag(program, tag, *urls): """Usage: tag [url ...] Tags the urls[s] with the given tag. Urls may be quoted whitespace-separated lists of replicas. """ from disco.util import listify program.ddfs.tag(tag, [listify(i) for i in program.input(*urls)])
def chunk_name(replicas, n): url = listify(replicas)[0] return self.safe_name("{0}-{1}".format(os.path.basename(url), n))
def chunk_name(replicas, n): url = listify(replicas)[0] return self.safe_name('{0}-{1}'.format(os.path.basename(url), n))
def chunk_name(replicas, n): url = listify(replicas)[0] return self.safe_name('%s-%s' % (os.path.basename(url), n))