code: def can_file_be_synced_on_current_platform(path):
      
      can_be_synced = True
  
      # If the given path is relative, prepend home
      fullpath = os.path.join(os.environ['HOME'], path)
  
      # Compute the ~/Library path on OS X
      # End it with a slash because we are looking for this specific folder and
      # not any file/folder named LibrarySomething
      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
docs: Check if the given path can be synced locally.
  
      Check if it makes sense to sync the file at the given path on the current
      platform.
      For now we don't sync any file in the ~/Library folder on GNU/Linux.
      There might be other exceptions in the future.
  
      Args:
          (str): Path to the file or folder to check. If relative, prepend it
                 with the home folder.
                 'abc' becomes '~/abc'
                 '/def' stays '/def'
  
      Returns:
          (bool): True if given file can be synced