|
Thanks Gary,I hadn't really thought of that. I'm copying a "read-only" data file to a tmpname before I muck with it so I was thinking in shell operations.
If read/write might be slow, then os.execute's fine. The data might be tens or low hundreds of MB.
On 8/04/2008, at 6:10 PM, gary ng wrote:
what is the problem of read then write other than it may be a bit slow ? --- Geoff Leyland <geoff_leyland@fastmail.fm> wrote:Hi, Am I right in thinking there's no os.copy or lfs.copy for copying files? os.execute is the obvious (system dependent) workaround, but I thought I'd check there's not a better way. Cheers, Geoff