| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 086e832 commit b3908ed
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ class TemporaryFileSwap: | |||
| 38 | 38 | ||
| 39 | 39 | def __init__(self, file_path: PathLike) -> None: | |
| 40 | 40 | self.file_path = os.fspath(file_path) | |
| 41 | - dirname, basename = osp.split(file_path) | ||
| 41 | + dirname, basename = osp.split(self.file_path) | ||
| 42 | 42 | fd, self.tmp_file_path = tempfile.mkstemp(prefix=basename, dir=dirname) | |
| 43 | 43 | os.close(fd) | |
| 44 | 44 | with contextlib.suppress(OSError): # It may be that the source does not exist. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments