Revision cbefd298 trunk/Pithos.Core/Agents/CollectionExtensions.cs

b/trunk/Pithos.Core/Agents/CollectionExtensions.cs
41 41
#endregion
42 42
using System.Collections.Concurrent;
43 43
using System.Diagnostics.Contracts;
44
using System.IO;
44 45
using Pithos.Interfaces;
45 46
using System;
46 47
using System.Collections.Generic;
47 48
using System.Linq;
49
using Pithos.Network;
48 50

  
49 51
namespace Pithos.Core.Agents
50 52
{
......
198 200
                && target.IsAtOrBelow(root);
199 201
        }
200 202

  
203
        public static bool IsSharedTo(this string targetPath,AccountInfo account)
204
        {
205
            var othersFolder = Path.Combine(account.AccountPath, FolderConstants.OthersFolder);
206
            var isShared = targetPath.IsAtOrBelow(othersFolder);
207
            return isShared;
208

  
209
        }
210

  
201 211
        /// <summary>
202 212
        /// Checkes whether a file path is below a root path
203 213
        /// </summary>

Also available in: Unified diff