Nasty one... I've been staring at it for a while and cannot come up with anything I really like...
best so far .find() returns the paths .finder() returns a generator that will find the paths still kinda nasty though Sean -----Original Message----- From: "John Keyes" <[email protected]> Sent: Friday, 9 August, 2013 11:37pm To: [email protected] Subject: Naming Question Hi all, I've a small utility that aims to make it easier to search for files based on a name, extension, type, size, dimensions, etc. [1][2] The main function is simply named `find` and it returns a list of file paths. I've now added generator support and I'm wondering how to expose the functionality. Right now I have added a named parameter to the find method. So find(".", fnmatch="*.png") would return a list of paths to png files, and find(".", fnmatch="*.png", generator=True) would return a generator. My nose is twitching at the smell of this. Any ideas folks? Naming things is hard. – John [1] https://github.com/jkeyes/pathfinder [2] https://pathfinder.readthedocs.org/en/latest/ -- You received this message because you are subscribed to the Google Groups "Python Ireland" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Python Ireland" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
