2

How to avoid a user from renaming a file while its being downloaded/streamed on mac programmatically using cocoa.

Breaking my head on this since 4 hours. Please help me. Thanks in advance.

Girish
  • 21
  • 2
  • To clarify, you have an application that is downloading a file from a server using FTP-- and you want to prevent the user, while the download is happening, from renaming the file... from the FTP server? – A O Aug 17 '15 at 15:36
  • Yes MattyAyOh. Fixed it by streaming it to a temp directory and moving it. Thank you. Appreciate your help. – Girish Aug 24 '15 at 07:05

1 Answers1

1

Can you simply download to a temporary directory (away from the user's typical view) and move/copy into its final location when complete?

DDP
  • 2,463
  • 1
  • 26
  • 28
  • Fixed it by streaming it to a temp directory and moving it. Thank you DDP. Appreciate your help. – Girish Aug 24 '15 at 07:04