MCPcopy Index your code
hub / github.com/O365/python-o365 / _classifier

Method _classifier

O365/drive.py:1722–1731  ·  view source on GitHub ↗

Subclass to change factory classes

(item)

Source from the content-addressed store, hash-verified

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

Callers 11

get_root_folderMethod · 0.95
_base_get_listMethod · 0.95
get_itemMethod · 0.95
get_item_by_pathMethod · 0.95
get_special_folderMethod · 0.95
searchMethod · 0.95
get_itemsMethod · 0.45
create_child_folderMethod · 0.45
searchMethod · 0.45
upload_fileMethod · 0.45
write_streamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected