Skip to content

Convert milliseconds timestamp to seconds to compare like units#3

Open
agrymaloski wants to merge 3 commits intomainfrom
drive-move
Open

Convert milliseconds timestamp to seconds to compare like units#3
agrymaloski wants to merge 3 commits intomainfrom
drive-move

Conversation

@agrymaloski
Copy link

@agrymaloski agrymaloski commented Feb 5, 2026

Convert the timestamp of drive files returned by ulsdk from milliseconds to seconds. This ensures that all time values are compared in the same unit (seconds).

ul drive mv -env stage -region us "0500c702-8685-a15e-47e9-b1c57526c651/*" 0500c287-a85e-597c-4a1d-ae8b7395e17c -start 2023-02-22 -end 2025-06-01

Add check to ensure target does not move into itself.

@agrymaloski agrymaloski requested a review from maxburke February 9, 2026 16:56
Copy link

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's convention in Python to use seconds, so this looks fine.

continue
# ensure that we don't move the target directory to itself
if obj_id == target_id:
breakpoint()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray breakpoint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants