DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Search full path + filename  (Read 5,435 times)

JeroenVdb

  • Participant
  • Joined in 2012
  • *
  • Posts: 2
Search full path + filename
« on: July 02, 2012, 09:44 AM »
In my documents I have many references (paths) to files I want to open quickly with FARR2. I select the path en hit my shortcut that selects and copies the path so I search for something like this: /WEB-INF/jsp/common/layout/article/detail.jsp -> 0 results (the file exists offcourse), the path before /WEB-INF/ isn't always the same!

Is it possible to return the correct file with FARR2?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Search full path + filename
« Reply #1 on: July 02, 2012, 09:59 AM »
Can you elaborate a little bit? I'm not sure I understand what you are asking.

JeroenVdb

  • Participant
  • Joined in 2012
  • *
  • Posts: 2
Re: Search full path + filename
« Reply #2 on: July 02, 2012, 12:31 PM »
When I search for /WEB-INF/jsp/common/layout/article/detail.jsp I want FARR to search for the consecutive folders; WEB-INF, jsp, common, layout and article + search for 'detail.jsp' in that last folder.

The path before /WEB-INF/ is unknown, it won't always be the same...

EXAMPLE; /WEB-INF/jsp/common/layout/article/detail.jsp should find:
1. C:\sites\prod\core\web\src\main\webapp\WEB-INF\jsp\common\layout\article
2. C:\sites\dev\core\web\src\main\webapp\WEB-INF\jsp\common\layout\article

Other search examples:
/WEB-INF/jsp/common/component/article/hftn.jsp
/WEB-INF/jsp/common/component/article/articlePagedListContainer.jsp
/WEB-INF/jsp/common/component/article/articlePagedListContent.jsp

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Search full path + filename
« Reply #3 on: July 02, 2012, 02:40 PM »
ok try this:

type something like: WEB-INF\jsp\common\component\article\hftn

that should be able to find
C:\sites\prod\core\web\src\main\webapp\WEB-INF\jsp\common\component\article\hftn\...

NOTE: Its important that you not start with \ and not use /



Original address: https://www.donationcoder.com/forum/index.php?topic=31477.0