Changeset 1837:09a1118bdb06


Ignore:
Timestamp:
Jul 11, 2019, 9:46:22 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Add FIXME comment about an inefficiency

However, when trying to fix this inefficiency, watch out for tickets
#86 and #87.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/stat.py

    r1829 r1837  
    652652        # possible.
    653653        lstat_result_for_path = None
     654        # FIXME: Here we try to list the contents of `dirname` even
     655        # though the above `isdir` call might/could have shown that
     656        # the directory doesn't exist. This may be related to ticket
     657        # #108. That said, we may need to consider virtual directories
     658        # here (see tickets #86 / #87).
    654659        for stat_result in self._stat_results_from_dir(dirname):
    655660            # Needed to work without cache or with disabled cache.
Note: See TracChangeset for help on using the changeset viewer.