~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to File/src/Do/Do.FilesAndFolders/AbstractFileAction.cs

  • Committer: Peng Deng
  • Date: 2009-06-10 23:11:49 UTC
  • mfrom: (618.1.1 do-plugins)
  • Revision ID: dengpeng@gmail.com-20090610231149-sw23bdm8c2qxo022
Fix the home folder match in Files and Folders plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
                protected virtual bool SupportsItem (ITextItem item)
70
70
                {
71
 
                        string path = item.Text.Replace ("~", Plugin.ImportantFolders.UserHome);
 
71
                        string path = Plugin.UnwrapHomeFolder (item.Text);
72
72
                        return path.Length < MaxPathLength && (File.Exists (path) || Directory.Exists (path));
73
73
                }
74
74
                
109
109
 
110
110
                protected string GetPath (ITextItem item)
111
111
                {
112
 
                        return item.Text.Replace ("~", Plugin.ImportantFolders.UserHome);
 
112
                        return Plugin.UnwrapHomeFolder (item.Text);
113
113
                }
114
114
 
115
115
                protected virtual IEnumerable<Item> Perform (string source, string destination)