Quick question: recursive touch?
Jeff Bauer
jbauer at rubic.com
Tue Oct 5 15:39:44 EDT 1999
Preston Landers wrote:
> Note that mine actually uses the unix touch
> command but it could easily be modified to use
> the more portable python open(file, "w")
Without reviewing the code in detail, I'd
like to offer one suggestion in favor of OS
diversity <0.2 wink>:
> path_elements = string.split(path, "/")[1:]
You might consider using os.sep, rather than
"/" slash as your path separator.
Jeff Bauer
Rubicon Research
More information about the Python-list
mailing list