From 81b7f41dfba54eaeaa2d03d2c82b6030bc71cede Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 28 Nov 2012 10:47:35 +0000 Subject: [PATCH] More notes --- notes.txt | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/notes.txt b/notes.txt index 5c1cea768..474061330 100644 --- a/notes.txt +++ b/notes.txt @@ -4,27 +4,6 @@ Make Env vars compatible with st? Get and put the metadata in the libray (x-object-meta-mtime) when getting and putting a file? -st is setting this -'x-object-meta-mtime' - - getmtime(filename) - Return the last modification time of a file, reported by os.stat(). - ->>> f = os.path.getmtime("z") -1347717491.343554 ->>> print f -1347717491.34 ->>> str(f) -'1347717491.34' ->>> "%d" % f -'1347717491' ->>> - -swift.py appears to be doing it wrong with str(float) which isn't a -good way of stringifying floats... - -Make - This also puts meta-mtime https://github.com/gholt/swiftly @@ -38,3 +17,6 @@ FIXME ordering not hash order FIXME progress meter would be nice! Do this by wrapping the Reader with a progress bar +Do bandwidth limit by wrapping the Reader too + +If length is same but remote has no mtime, then could fall back to checking the checksum and if that was OK then just update the object meta time.