Revision 8f44fd3a trunk/Pithos.Core/Agents/Downloader.cs

b/trunk/Pithos.Core/Agents/Downloader.cs
99 99
                                    DownloadWithBlocks(accountInfo, client, cloudFile, relativeUrl, localPath,
100 100
                                                       serverHash);
101 101

  
102
                            if (cloudFile.AllowedTo == "read")
102
                            if (!cloudFile.IsWritable(accountInfo.UserName))
103 103
                            {
104 104
                                var attributes = File.GetAttributes(localPath);
105 105
                                File.SetAttributes(localPath, attributes | FileAttributes.ReadOnly);

Also available in: Unified diff