From john.tourtellott at kitware.com Wed May 3 17:21:48 2017 From: john.tourtellott at kitware.com (John Tourtellott) Date: Wed, 3 May 2017 17:21:48 -0400 Subject: [Girder-users] girder_client.upload() not updating file contents Message-ID: I am trying to update a file that has previously been uploaded to girder. To do that, I am calling girder_client.upload() with the argument "reuseExisting=True", however the file contents at that item are not getting updated. There is a message written to the console "File xxx exists in item, but with stale contents". I am using the pip-installed girder client (version 2.2.0). Should the file contents be overwritten when the reuseExisting flag is set? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.grauer at kitware.com Thu May 4 13:33:11 2017 From: michael.grauer at kitware.com (Michael Grauer) Date: Thu, 4 May 2017 13:33:11 -0400 Subject: [Girder-users] girder_client.upload() not updating file contents In-Reply-To: References: Message-ID: Hi John, I just tried to reproduce this against a local Girder instance, which was on the latest Girder master, and I used pip installed girder-client 2.2.0. I was able to upload a folder and files, to a folder with items in Girder. I then re-uploaded, without setting reuseExisting=True, in this case it created all new items with names like "original name (1)" for a second copy of a file named "original name". I removed all of the "(1)" files, and then reuploaded using reuseExisting=True, which didn't upload anything because all of the files in Girder were up to date with the local files. I then changed one of the local file's contents, and re-uploaded with reuseExisting=True, it did upload and replace the one changed original file with the new contents, and the size of the file changed (and I could download the new file and verify the new contents), but the created and updated timestamps on the item didn't change, nor did the item and file names. Let me know if you are still stuck, Mike On Wed, May 3, 2017 at 5:21 PM, John Tourtellott < john.tourtellott at kitware.com> wrote: > I am trying to update a file that has previously been uploaded to girder. > > To do that, I am calling girder_client.upload() with the argument > "reuseExisting=True", however the file contents at that item are not > getting updated. There is a message written to the console "File xxx exists > in item, but with stale contents". > > I am using the pip-installed girder client (version 2.2.0). > > Should the file contents be overwritten when the reuseExisting flag is set? > > _______________________________________________ > Girder-users mailing list > Girder-users at public.kitware.com > http://public.kitware.com/mailman/listinfo/girder-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.tourtellott at kitware.com Thu May 4 13:53:25 2017 From: john.tourtellott at kitware.com (John Tourtellott) Date: Thu, 4 May 2017 13:53:25 -0400 Subject: [Girder-users] girder_client.upload() not updating file contents In-Reply-To: References: Message-ID: Thanks, Mike. I made a simpler test case and got the same results as you. Not sure what I did wrong yesterday, but it must have been operator error. I'm good to go. On Thu, May 4, 2017 at 1:33 PM, Michael Grauer wrote: > Hi John, > > I just tried to reproduce this against a local Girder instance, which was > on the latest Girder master, and I used pip installed girder-client 2.2.0. > > I was able to upload a folder and files, to a folder with items in Girder. > > > I then re-uploaded, without setting reuseExisting=True, in this case it > created all new items with names like "original name (1)" for a second copy > of a file named "original name". > > I removed all of the "(1)" files, and then reuploaded using > reuseExisting=True, which didn't upload anything because all of the files > in Girder were up to date with the local files. > > I then changed one of the local file's contents, and re-uploaded with > reuseExisting=True, it did upload and replace the one changed original file > with the new contents, and the size of the file changed (and I could > download the new file and verify the new contents), but the created and > updated timestamps on the item didn't change, nor did the item and file > names. > > Let me know if you are still stuck, > Mike > > On Wed, May 3, 2017 at 5:21 PM, John Tourtellott < > john.tourtellott at kitware.com> wrote: > >> I am trying to update a file that has previously been uploaded to girder. >> >> To do that, I am calling girder_client.upload() with the argument >> "reuseExisting=True", however the file contents at that item are not >> getting updated. There is a message written to the console "File xxx exists >> in item, but with stale contents". >> >> I am using the pip-installed girder client (version 2.2.0). >> >> Should the file contents be overwritten when the reuseExisting flag is >> set? >> >> _______________________________________________ >> Girder-users mailing list >> Girder-users at public.kitware.com >> http://public.kitware.com/mailman/listinfo/girder-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: