Roy Smith wrote:
The idea interface I see would be one like:
shutil.copy([source_dir, '*.conf'], conf_dir)
the idea is that if the first argument is a list (or maybe any
iterable other than a string?), it would automatically get run through
os.path.join(). And, the result would always get
On Sat, 14 Nov 2009 07:48:39 -0800, Roy Smith wrote:
I'm converting some old bash scripts to python. There's lots of places
where I'm doing things like rm $source_dir/*.conf. The best way I can
see to convert this into python is:
configs = glob.glob(os.path.join(source_dir, '*.conf'))