def get_icloud_folder_location():
 yosemite_icloud_path = '~/Library/Mobile Documents/com~apple~CloudDocs/'
 icloud_home = os.path.expanduser(yosemite_icloud_path)
 if (not os.path.isdir(icloud_home)):
  error('Unable to find your iCloud Drive =(')
 return unicode(icloud_home)

def get_icloud_folder_location ( ) : yosemite_icloud_path = '~/Library/Mobile Documents/com~apple~CloudDocs/' icloud_home = os . path . expanduser ( yosemite_icloud_path ) if ( not os . path . isdir ( icloud_home ) ) : error ( 'Unable to find your iCloud Drive =(' ) return unicode ( icloud_home )
try to locate the icloud drive folder .