(options, path, dest)
| 65 | return source_path, target_path |
| 66 | |
| 67 | def try_copy(options, path, dest): |
| 68 | source_path, target_path = mkpaths(options, path, dest) |
| 69 | if not options.silent: |
| 70 | print('installing %s' % target_path) |
| 71 | try_mkdir_r(os.path.dirname(target_path)) |
| 72 | try_unlink(target_path) # prevent ETXTBSY errors |
| 73 | return shutil.copy2(source_path, target_path) |
| 74 | |
| 75 | def try_remove(options, path, dest): |
| 76 | _source_path, target_path = mkpaths(options, path, dest) |
no test coverage detected
searching dependent graphs…