Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:00:32+00:00 2026-06-15T05:00:32+00:00

I am using the standard Python FTP library to get a file listing and

  • 0

I am using the standard Python FTP library to get a file listing and subsequently download files from an FTP site after inspecting the list. This used to be a quick operation, however, the list of files on the site grows daily and is now sufficiently long to cause a significant delay when executing ftp.retrlines('LIST',readFileCallback) to get the file listing.

I am not interested in the full listing on the FTP server. Is it possible to e.g. get a listing of files what are only 1 month old?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:00:33+00:00Added an answer on June 15, 2026 at 5:00 am

    You can try passing -t to LIST, some servers support it. This will sort the listing by the modified time (similar to ls).

    Typically such filtering/sorting is left up to the client to implement. FTP servers are not obligated to provide server-side filtering (beyond basics).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to write an xml file using python standard modules (not using elementtree,
I'm writing a simple program in Python 2.7 using pycURL library to submit file
I need to create a diff file using standard UNIX diff command with python
If I reference the Python Standard Library using IronPython do I have to deploy
I am using the Python standard uuid library. If my application eventually scales out
I'm fairly new to C++ standard library and have been using standard library lists
I wrote a program in python (using standard python libraries) long ago. Now I
I am using standard SMTPHandler logger to catch my Python exceptions. Is there a
If anyone using WingIDE for their python dev needs: For some reason I get
I tried to run the following code from http://docs.python.org/library/mmap.html import mmap # write a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.