analyzer.utils.file_tools

Attributes

Functions

stripPort(url)

stripPrefix(url)

getPath(url)

multiMatch(l, elements)

extractCmsLocation(url)

zipDirectory(path, output[, skip_words, skip])

tarDirectory(path, output[, skip_words, skip, mode])

tarFiles(paths, output[, skip_words, skip, mode])

exists(client, loc)

isDir(client, loc)

makeDir(client, loc)

copyFile(fr, to[, from_rel_to])

getVomsProxyPath([check_ok])

iterPaths(paths_or_patterns)

Module Contents

analyzer.utils.file_tools.logger[source]
analyzer.utils.file_tools.stripPort(url)[source]
analyzer.utils.file_tools.stripPrefix(url)[source]
analyzer.utils.file_tools.getPath(url)[source]
analyzer.utils.file_tools.multiMatch(l, elements)[source]
analyzer.utils.file_tools.extractCmsLocation(url)[source]
analyzer.utils.file_tools.zipDirectory(path, output, skip_words=('.git', '.github', '.pytest_cache', 'tests', 'docs'), skip=(lambda fn: ...,))[source]
analyzer.utils.file_tools.tarDirectory(path, output, skip_words=('.git', '.github', '.pytest_cache', 'tests', 'docs'), skip=(lambda fn: ...,), mode='w')[source]
analyzer.utils.file_tools.tarFiles(paths, output, skip_words=('.git', '.github', '.pytest_cache', 'tests', 'docs'), skip=(lambda fn: ...,), mode='w')[source]
analyzer.utils.file_tools.exists(client, loc)[source]
analyzer.utils.file_tools.isDir(client, loc)[source]
analyzer.utils.file_tools.makeDir(client, loc)[source]
analyzer.utils.file_tools.copyFile(fr, to, from_rel_to=None)[source]
analyzer.utils.file_tools.getVomsProxyPath(check_ok=True)[source]
analyzer.utils.file_tools.iterPaths(paths_or_patterns)[source]