Results 1 to 9 of 9

Thread: How do I Search files on a ftp server?

  1. #1
    I'm Very Important
    Join Date
    Jul 2009
    Posts
    2,945
    Thanks
    321
    Thanked
    360 times in 318 posts
    • Domestic_Ginger's system
      • Motherboard:
      • Gigabyte GA-MA770-UD3
      • CPU:
      • Phenom II X2 550
      • Memory:
      • 4GB DDR2
      • Storage:
      • F3 500gb
      • Graphics card(s):
      • 5850
      • PSU:
      • Corsair 550vx
      • Case:
      • NZXT beta evo
      • Operating System:
      • W7
      • Monitor(s):
      • G2222HDL

    How do I Search files on a ftp server?

    Basically for work I need to search for PDFs with date in the name. Really slow to go the folder and find individual files. Its on a windows machine.

    Any help welcome!

  2. #2
    root Member DanceswithUnix's Avatar
    Join Date
    Jan 2006
    Location
    In the middle of a core dump
    Posts
    12,978
    Thanks
    778
    Thanked
    1,586 times in 1,341 posts
    • DanceswithUnix's system
      • Motherboard:
      • Asus X470-PRO
      • CPU:
      • 5900X
      • Memory:
      • 32GB 3200MHz ECC
      • Storage:
      • 2TB Linux, 2TB Games (Win 10)
      • Graphics card(s):
      • Asus Strix RX Vega 56
      • PSU:
      • 650W Corsair TX
      • Case:
      • Antec 300
      • Operating System:
      • Fedora 39 + Win 10 Pro 64 (yuk)
      • Monitor(s):
      • Benq XL2730Z 1440p + Iiyama 27" 1440p
      • Internet:
      • Zen 900Mb/900Mb (CityFibre FttP)

    Re: How do I Search files on a ftp server?

    Tradition would say there should be a text file at the top level either describing where stuff is and/or a recursive directory listing.

  3. Received thanks from:

    Domestic_Ginger (20-02-2015)

  4. #3
    I'm Very Important
    Join Date
    Jul 2009
    Posts
    2,945
    Thanks
    321
    Thanked
    360 times in 318 posts
    • Domestic_Ginger's system
      • Motherboard:
      • Gigabyte GA-MA770-UD3
      • CPU:
      • Phenom II X2 550
      • Memory:
      • 4GB DDR2
      • Storage:
      • F3 500gb
      • Graphics card(s):
      • 5850
      • PSU:
      • Corsair 550vx
      • Case:
      • NZXT beta evo
      • Operating System:
      • W7
      • Monitor(s):
      • G2222HDL

    Re: How do I Search files on a ftp server?

    Thanks for the help. Reading my initial post it appears I have not described the ideal solution. The search ideally would provide a list of the desired files so I could click and print them out.

  5. #4
    mush-mushroom b0redom's Avatar
    Join Date
    Oct 2005
    Location
    Middlesex
    Posts
    3,494
    Thanks
    195
    Thanked
    383 times in 292 posts
    • b0redom's system
      • Motherboard:
      • Some iMac thingy
      • CPU:
      • 3.4Ghz Quad Core i7
      • Memory:
      • 24GB
      • Storage:
      • 3TB Fusion Drive
      • Graphics card(s):
      • nViidia GTX 680MX
      • PSU:
      • Some iMac thingy
      • Case:
      • Late 2012 pointlessly thin iMac enclosure
      • Operating System:
      • OSX 10.8 / Win 7 Pro
      • Monitor(s):
      • Dell 2713H
      • Internet:
      • Be+

    Re: How do I Search files on a ftp server?

    It's not possible using a 'normal' ftp client. The protocol doesn't support it. This thread seems to indicate that totalcommander can do it though:

    http://serverfault.com/questions/285...the-ftp-server

  6. Received thanks from:

    Domestic_Ginger (20-02-2015)

  7. #5
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Re: How do I Search files on a ftp server?

    FileZilla, an FTP and SFTP client can perform a search for you.

    http://www.addictivetips.com/windows...filezilla-325/

    Assuming you know the format of the date, you can do a regex search as well and display all PDFs with a valid date string in the filename

  8. Received thanks from:

    Domestic_Ginger (25-02-2015)

  9. #6
    I'm Very Important
    Join Date
    Jul 2009
    Posts
    2,945
    Thanks
    321
    Thanked
    360 times in 318 posts
    • Domestic_Ginger's system
      • Motherboard:
      • Gigabyte GA-MA770-UD3
      • CPU:
      • Phenom II X2 550
      • Memory:
      • 4GB DDR2
      • Storage:
      • F3 500gb
      • Graphics card(s):
      • 5850
      • PSU:
      • Corsair 550vx
      • Case:
      • NZXT beta evo
      • Operating System:
      • W7
      • Monitor(s):
      • G2222HDL

    Re: How do I Search files on a ftp server?

    Thanks for the suggestions. I found winscp which will provide a handy list. Unfortunately I can't either open or copy the list. I can copy the path or open containing folder. 3/4 of the way there

  10. #7
    Treasure Hunter extraordinaire herulach's Avatar
    Join Date
    Apr 2005
    Location
    Bolton
    Posts
    5,618
    Thanks
    18
    Thanked
    172 times in 159 posts
    • herulach's system
      • Motherboard:
      • MSI Z97 MPower
      • CPU:
      • i7 4790K
      • Memory:
      • 8GB Vengeance LP
      • Storage:
      • 1TB WD Blue + 250GB 840 EVo
      • Graphics card(s):
      • 2* Palit GTX 970 Jetstream
      • PSU:
      • EVGA Supernova G2 850W
      • Case:
      • CM HAF Stacker 935, 2*360 Rad WC Loop w/EK blocks.
      • Operating System:
      • Windows 8.1
      • Monitor(s):
      • Crossover 290HD & LG L1980Q
      • Internet:
      • 120mb Virgin Media

    Re: How do I Search files on a ftp server?

    Assuming it has a command line effort then <command> > filelist.txt will do it.

    My batch-fu isn't what it once was but some combination of find/findstr should then let you pull particular files.

    The lazy option is just to pull all the files to a local directory. Or slightly less lazy (but I think requiring win 8) is just to map the ftp server as a network drive and let Explorer do the work

    Ninja edit: just checked on my work (win 7) laptop and that had the option as well.

  11. #8
    I'm Very Important
    Join Date
    Jul 2009
    Posts
    2,945
    Thanks
    321
    Thanked
    360 times in 318 posts
    • Domestic_Ginger's system
      • Motherboard:
      • Gigabyte GA-MA770-UD3
      • CPU:
      • Phenom II X2 550
      • Memory:
      • 4GB DDR2
      • Storage:
      • F3 500gb
      • Graphics card(s):
      • 5850
      • PSU:
      • Corsair 550vx
      • Case:
      • NZXT beta evo
      • Operating System:
      • W7
      • Monitor(s):
      • G2222HDL

    Re: How do I Search files on a ftp server?

    Just mapped the drive in win 7. Search function appears a bit lacking so will fiddle if I get the chance.

  12. #9
    Registered+
    Join Date
    Apr 2015
    Posts
    24
    Thanks
    0
    Thanked
    1 time in 1 post

    Re: How do I Search files on a ftp server?

    What programming language are you writing in?

    Regardless, the concept is the same - you need to retrieve the folder listing using FTP, write those values to an array in your programming language of choice then do the search on that array. Once it's filtered, to retrieve a file/files you'd need to do multiple GET commands.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •