Relative path in temp dir Parameters ---------- name : str The name of the file. Returns ------- path : str The concatenated path.
(self, name)
| 153 | self.remove() |
| 154 | |
| 155 | def relpath(self, name): |
| 156 | """Relative path in temp dir |
| 157 | |
| 158 | Parameters |
| 159 | ---------- |
| 160 | name : str |
| 161 | The name of the file. |
| 162 | |
| 163 | Returns |
| 164 | ------- |
| 165 | path : str |
| 166 | The concatenated path. |
| 167 | """ |
| 168 | return os.path.join(self.temp_dir, name) |
| 169 | |
| 170 | def listdir(self): |
| 171 | """List contents in the dir. |