Skip to content

Parameter --collect dirs-1st-last-file counter isn't treating 9 as less than 10, 11, etc. #4

@djdarcy

Description

@djdarcy

Describe the bug
The --collect dirs-1st-last-file isn't properly counting sequences that don't have padding.

Debug enabled? Note run circumstances. Attach ConsoleLog (see wiki).
No.

Repro steps:
Steps to reproduce the behavior:

  1. listall.py -d "." -i 1 -fmt summary -xd ".sync" -c dirs-1st-last-file --output file --filename "f3-archive.txt"

Expected output? What do you see instead?
In the F3 archive folders like 1947.06 - 9668704 - Bakersfield, California output as:

  Page 1.jpg
  Page 9.jpg

When it should show as:

  Page 1.jpg
  Page 13.jpg

Screenshot or video (opt.)?
NA

Version (see listall.py --version)? OS? Python version?

  1. listall.py: 0.0.2.1
  2. OS: Windows 10 Professional 64bit
  3. Python: 3.12.1

Additional context
It might make sense to simply snag the code from pattern break

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions