Order Files by Date UPLOADED!
-
Trying to transition from Octoprint but the fact I can not order my files by date uploaded descending is a real pain in the ass.. using 3.3.0. Is this something that has already been asked for as I did not find a thread when trying to search.. Or is there a way to add that to the columns?
Thanks! -
@airscapes mine sort by Data modified, which is usually the upload date..
cant you just click on date modified and have it sort them that way? -
@adamfilip If the system was looking at the date the file was written to on the SD card yes, but it is not. If I upload a file that was sliced 6 months ago, it will be at the end of the list, not the top. Yes sort the other way but what if I have 60 files and the one I upload falls in the middle of time between oldest and newest.
I don't always reslice, so how do I find something quickly I just uploaded?? I am not going to build a huge directory tree on the SD card , that is already done on my computer. The end point is where the file live for the short time it is printed and if I want to reprint it in the future, a search would be how anyone does that sort of thing in any Gui, but that missing item is in a different post.
-
@airscapes if I'm honest, I often just use the
'UPLOAD & START' button in the top right of DWC. That way you get around the issue you're seeing.There's no harm in re-uploading a file that's already there, and it's always gonna be quicker to search through and find files on your local machine than it is on anything remote, and unless the files are massive, the upload time is only a few seconds
-
@engikeneer That is true and will have to due. Now I think about it, unlike Octoprint that runs on a Pi with full OS, this board does not know what day or time it is, so I guess it uses the date stamp on the file from the pervious OS.
-
@airscapes said in Order Files by Date UPLOADED!:
this board does not know what day or time it is, so I guess it uses the date stamp on the file from the pervious OS
In this case it will be up to uploaders, such as DWC and Prusa Slicer, to use the current timestamp.
I think that this is where it gets the uploaded file time https://github.com/Duet3D/RepRapFirmware/blob/dev/src/Networking/HttpResponder.cpp#L1179
-
@airscapes It would be quite easy to add a new option to DWC to use the current datetime as the file timestamp instead of the last modified timestamp from the file itself. Do you think that would help?
-
@chrishamm I think the issue is the time samp is from the remote location as the duet does not know what time it is. If the file on the remote system is 90 days old, that will be the time stamp it has once it is uploaded. That is my assumption as to how it works. The Duet is not a Pi.. it is just a microprocssor so rather limiteed in processing and it has no full OS. If the file does get a current time stamp when uploaded, and I am totally wrong, then that would be what I am asking for.
-
@airscapes That isn't entirely right - when you connect, RRF updates its time from the browser's datetime (and in SBC mode it's synchronized with the Pi). So when you upload a file without a timestamp, RRF will use the current one as stored in the RAM.
I was considering to pass the browser's datetime instead of the file's timestamp to the upload request, though, if configured by the user.
-
@chrishamm That is great news! My wife will be very happy to know I was still WRONG!! and in this case I am happy as well! If this could be added at some point with the abilityt sort on it decending so most recent upload is always at the top, would be perfect.