renameFile Method

 Object: DownloadClient
 Syntax: boolean renameFile(String fileURL, String filename)
 Returns: Boolean
 Description: renameFile renames a downloaded file. It returns True if the rename was successful, False if not.

renameFile takes two parameters:
  • fileURL
    The URL of the file to download

  • filename
    The new path and name for the downloaded file

 

Previous Page Next Page