def can_file_be_synced_on_current_platform(path):
 can_be_synced = True
 fullpath = os.path.join(os.environ['HOME'], path)
 library_path = os.path.join(os.environ['HOME'], 'Library/')
 if (platform.system() == constants.PLATFORM_LINUX):
  if fullpath.startswith(library_path):
   can_be_synced = False
 return can_be_synced

def can_file_be_synced_on_current_platform ( path ) : can_be_synced = True fullpath = os . path . join ( os . environ [ 'HOME' ] , path ) library_path = os . path . join ( os . environ [ 'HOME' ] , 'Library/' ) if ( platform . system ( ) == constants . PLATFORM_LINUX ) : if fullpath . startswith ( library_path ) : can_be_synced = False return can_be_synced
check if the given path can be synced locally .