Revision 6b0de454 trunk/Pithos.Core/Agents/FileSystemWatcherAdapter.cs

b/trunk/Pithos.Core/Agents/FileSystemWatcherAdapter.cs
91 91
            get { return _cachedDeletedFullPath; }
92 92
            set
93 93
            {
94
                Debug.Assert(Path.IsPathRooted(CachedDeletedFullPath));
95
                if (!Path.IsPathRooted(CachedDeletedFullPath))
94
                Debug.Assert(Path.IsPathRooted(value));
95
                if (!Path.IsPathRooted(value))
96 96
                    Log.WarnFormat("Storing a relative CachedDeletedFullPath: {0}",value);
97 97
                _cachedDeletedFullPath = value;
98 98
            }
......
178 178
                    try
179 179
                    {
180 180

  
181
                        Moved(sender, new MovedEventArgs(e.FullPath,e.Name,e.OldFullPath,e.OldName));
181
                        Moved(sender, new MovedEventArgs(Path.GetDirectoryName(e.FullPath),Path.GetFileName(e.Name),Path.GetDirectoryName(e.OldFullPath),Path.GetFileName(e.OldName)));
182 182
                    }
183 183
                    catch (Exception exc)
184 184
                    {

Also available in: Unified diff