Skip to content

[BUG]: Last modified time for all files/folders on hard drive is shown as 1/1/1970 #69

@gamemaker1

Description

@gamemaker1

Describe the bug
The last modified time (shown in the output of the list command) is always 1/1/1970 for all files on the hard drive

To Reproduce
Steps to reproduce the behavior:

  1. Create a drive with the provider set to hard drive
  2. Run the list command, i.e.: ls
  3. The last modified time is 1/1/1970 for all files/folders

Expected behavior
The last modified time should be the last modified time (last time I cd'ed/renamed/moved that folder OR last time I viewed/edited/moved that file)

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • Dabbu CLI Version: 3.2.0-beta.0 (all versions from 3.0.0 to current)
  • OS Version: Arch Linux (latest)

Additional context
Seems the CLI tries to query for an invalid/undefined value on the file object returned by the fs-extra library, and thus while formatting the date, falls back to the default date (1/1/1970)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersnext-releaseTo be added in the next release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions