Example #1
0
        public void IntegrateFile(string path, ulong who, StorageFile change)
        {
            // put file in local's integration map for this user id

            LocalFolder folder = GetLocalFolder(path);
            LocalFile file = null;

            if(!folder.Files.SafeTryGetValue(change.UID, out file))
                return;

            file.Integrated.SafeAdd(who, change.Clone());
            // dont set file.info modified, because hash hasn't changed

            Modified = true;
            PeriodicSave = true;

            Storages.CallFileUpdate(ProjectID, path, file.Info.UID, WorkingChange.Updated);
        }