Subclass to change factory classes
(item)
| 1720 | |
| 1721 | @staticmethod |
| 1722 | def _classifier(item): |
| 1723 | """ Subclass to change factory classes """ |
| 1724 | if 'folder' in item: |
| 1725 | return Folder |
| 1726 | elif 'image' in item: |
| 1727 | return Image |
| 1728 | elif 'photo' in item: |
| 1729 | return Photo |
| 1730 | else: |
| 1731 | return File |
| 1732 | |
| 1733 | def refresh(self): |
| 1734 | """ Updates this drive with data from the server |
no outgoing calls
no test coverage detected