You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetOrder function in pkg/utils/ordering.go is calling the location lookup asynchronously, which means that the location almost always gets added as the last piece of the target path.
The location needs to be resolved upfront (if required) and appended at the right time/order.
Camera: all
Firmware Version: all
Operating System: all
Commit ID: 51a4268 (current development branch HEAD)
Expected Behavior:
Default configuration is to sort by date,location,camera so the expected result is to store target files in <date>/<location>/<camera> directory structure.
Current Behavior:
Since the location is resolved asynchronously, the date and camera gets added to the path string first, and location ends up to be the latest almost in all the cases.
I've made a quick and dirty hack to to prove this issue and it works fine with the following code:
SortBy/Location is not working as configured
Context:
The
GetOrder
function inpkg/utils/ordering.go
is calling the location lookup asynchronously, which means that the location almost always gets added as the last piece of the target path.The location needs to be resolved upfront (if required) and appended at the right time/order.
Expected Behavior:
Default configuration is to sort by
date,location,camera
so the expected result is to store target files in<date>/<location>/<camera>
directory structure.Current Behavior:
Since the location is resolved asynchronously, the date and camera gets added to the path string first, and location ends up to be the latest almost in all the cases.
I've made a quick and dirty hack to to prove this issue and it works fine with the following code:
Logs / Screenshots:
N/A
Steps to Reproduce:
Default configuration. No need to change anything, just run import on any camera.
The text was updated successfully, but these errors were encountered: