def search(re_string,dir=".")
      # Get the directory we're searching
      dir = File.expand_path((dir.is_a? FolderObject) ? dir.location : dir,@current_dir)
      ls(dir).select {|item| item.name =~ %r{#{re_string}}}
    end
def search(re_string,dir=".")
      # Get the directory we're searching
      dir = File.expand_path((dir.is_a? FolderObject) ? dir.location : dir,@current_dir)
      ls(dir).select {|item| item.name =~ %r{#{re_string}}}
    end
Searches the current directory for items matching the given regular expression