ID 244660 - nuke.getFileNameList() returns a single # if the files frame number doesn't start with a 0

Follow

Problem summary
nuke.getFileNameList() returns a single # if the files frame number doesn't start with a 0.

Customer reported version
nuke.10.0v4

Steps to reproduce

1) Download the attached images

2) Open Nuke 9.0v1 or newer

3) Run the below script, substituting the <directoryPath> with the path to where the images were downloaded.

print nuke.getFileNameList("<directoryPath>/")
It will return this:

['test_#.dpx 101-102', 'tester_####.dpx 101-102']

test_101.dpx had a frame padding of 1, where it should be 3.

Reproduced by support
This problem has been reproduced in:

Nuke 10.0v4 - Windows 10 - CentOS 6.8
Nuke 10.0v1 - Windows 10
Nuke 9.0v9 - Windows 10
Nuke 9.0v1 - Windows 10 - CentOS 6.8

This was not an issue in:

Nuke 8.0v6 - Windows 10 - CentOS 6.8

Expected behaviour
For test_101.dpx to have a frame padding of 3

Actual behaviour
It had a frame padding of 1

    We're sorry to hear that

    Please tell us why