DownloadWithBlocks(accountInfo, client, cloudFile, relativeUrl, localPath,
serverHash);
- if (cloudFile.AllowedTo == "read")
+ if (!cloudFile.IsWritable(accountInfo.UserName))
{
var attributes = File.GetAttributes(localPath);
File.SetAttributes(localPath, attributes | FileAttributes.ReadOnly);