diff options
Diffstat (limited to 'lib/spack/llnl/util/filesystem.py')
-rw-r--r-- | lib/spack/llnl/util/filesystem.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index f43745a551..ace6cfded6 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -60,7 +60,6 @@ __all__ = [ 'fix_darwin_install_name', 'force_remove', 'force_symlink', - 'hide_files', 'install', 'install_tree', 'is_exe', @@ -392,18 +391,6 @@ def replace_directory_transaction(directory_name, tmp_root=None): tty.debug('TEMPORARY DIRECTORY DELETED [{0}]'.format(tmp_dir)) -@contextmanager -def hide_files(*file_list): - try: - baks = ['%s.bak' % f for f in file_list] - for f, bak in zip(file_list, baks): - shutil.move(f, bak) - yield - finally: - for f, bak in zip(file_list, baks): - shutil.move(bak, f) - - def hash_directory(directory): """Hashes recursively the content of a directory. |