This project is read-only.
1

Closed

RemoteFile.CopyFileToDevice does not allow readonly desktop file

description

Repro:
1) Create a file on local harddrive (e.g. c:\MyFile.txt)
2) Make it readonly (readonly attribute set)
3) Call RemoteFile.CopyFileToDevice(dev, @"c:\MyFile.txt", @"\MyFile.txt", true)
 
Expect: the file to be copied
Actual: UnauthorizedAccessException
 
Notes: when the FileStream is created, it is trying to open the file read/write rather than just read.
Closed Aug 15, 2011 at 5:04 PM by dahall
Corrected in source code drop 69292. Will be included in next release.

comments