Look for files in the default file storage, if it's local.
(self, path, find_all=False)
| 231 | super().__init__(*args, **kwargs) |
| 232 | |
| 233 | def find(self, path, find_all=False): |
| 234 | """ |
| 235 | Look for files in the default file storage, if it's local. |
| 236 | """ |
| 237 | try: |
| 238 | self.storage.path("") |
| 239 | except NotImplementedError: |
| 240 | pass |
| 241 | else: |
| 242 | if self.storage.location not in searched_locations: |
| 243 | searched_locations.append(self.storage.location) |
| 244 | if self.storage.exists(path): |
| 245 | match = self.storage.path(path) |
| 246 | if find_all: |
| 247 | match = [match] |
| 248 | return match |
| 249 | return [] |
| 250 | |
| 251 | def list(self, ignore_patterns): |
| 252 | """ |