Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overwrite={true,false} #13

Open
weiribao opened this issue Nov 6, 2012 · 1 comment
Open

overwrite={true,false} #13

weiribao opened this issue Nov 6, 2012 · 1 comment

Comments

@weiribao
Copy link
Collaborator

weiribao commented Nov 6, 2012

Add an option

overwrite={true,false}

if md5url.out is found on disk and forceUpdate=true,

move md5url.{out,data,datax} to md5url.md5data.{out,data,datax}.

In the JSON string, also return

md5data: [md5data1,md5data2, ...]
createTime: [time1,time2, ...
requestSentTime: [time1,time2, ...]

where the first value in each array corresponds to the current request.

I could imagine that I would also want to keep only the diffs. So instead of writing md5url.md5data.{out,data,datax}, we would write md5url.md5data.{out,data,datax}.diff which is the diff with respect to the previous version. This would require an option

keepdiffs={true,false}

and then require you to call diff or xdiff with a system command and a configuration option for the plug-in for the command line arguments to diff.

@rweigel
Copy link
Owner

rweigel commented Dec 1, 2012

Simple implementation:

(1) Modify code to always write files as md5url.md5data.{}.
(2) When looking for cached files search list of files md5url.
and keep the most recent.

Later, start storing log file information in database. MongoDB integrates nicely with Node.js.

Deal with storing diffs later.

@rweigel rweigel closed this as completed Dec 1, 2012
@rweigel rweigel reopened this Dec 1, 2012
@rweigel rweigel reopened this Jun 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants