Revision 42800be8 trunk/Pithos.ShellExtensions/FileContext.cs
b/trunk/Pithos.ShellExtensions/FileContext.cs | ||
---|---|---|
2 | 2 |
// This project is open source. Released under the XYZ license |
3 | 3 |
// </copyright> |
4 | 4 |
|
5 |
using System.Linq; |
|
5 | 6 |
using Microsoft.Win32; |
6 | 7 |
|
7 | 8 |
namespace Pithos.ShellExtensions |
... | ... | |
31 | 32 |
{ |
32 | 33 |
get |
33 | 34 |
{ |
34 |
Debug.WriteLine( String.Format("Managed path is {0}\r\n Current Path is {1}", PithosPath, CurrentFile),LogCategories.Shell); |
|
35 |
return CurrentFolder.StartsWith(PithosPath, true, null); |
|
35 |
|
|
36 |
var accountPath=(from account in Settings.Accounts |
|
37 |
where CurrentFile.StartsWith(account.RootPath, StringComparison.InvariantCultureIgnoreCase) |
|
38 |
select account.RootPath).FirstOrDefault(); |
|
39 |
Debug.WriteLine(String.Format("Account path is {0}\r\n Current Path is {1}", accountPath, CurrentFile), LogCategories.Shell); |
|
40 |
return !String.IsNullOrWhiteSpace(accountPath); |
|
36 | 41 |
} |
37 | 42 |
} |
38 | 43 |
|
Also available in: Unified diff