Open nihal111 opened 8 years ago
@nihal111 There is no way to check if it is a different file apart from checking the name. And we are currently avoiding downloading the same file by checking the filename. So there is no way to know if the file to be downloaded is a new file or the same one.
We could download the file and compare size to check if file is same or not.
This is an overkill... I think we should ditch this one.
On Sat, 9 Apr 2016 14:45 Nihal Singh, notifications@github.com wrote:
We could download the file and compare size to check if file is same or not.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/nihal111/MooDLD/issues/8#issuecomment-207750755
First Year Undergraduate, Computer Science, IIT Bombay.
@nihal111 @CodeMaxx Hence the low priority tag. Let's deal with this after all the fundamentals are fixed.
haan isiliye lagaya tha tag. Cool then baad mein dekhte hain
Hey Bro, You can match local file timestamp and file size from your remote location file size and time stamp. I am assuming file name must be same always at remote server or location.
It may happen that a different file with same filename is downloaded to a particular directory. In that case a new filename should be made, and file should be downloaded. New filename could be common filename appended with a number