Skip to content

What's the purpose of trying to fetch non-existing dirs and files ? #2

Description

@felipesanches

Here are the error messages I got after scanning ftp.apple.asimov.net:

Removed ‘.listing’.
Wrote HTML-ized index to ‘ftp.apple.asimov.net.html’.
550 NONEXISTINGFILEdgdjahxnedadbacxjbc: No such file or directory
550 NONEXISTINGFILEdgdjahxnedadbacxjbc: No such file or directory
31707010106

This is a result of the lines at:

ftp-queue/ftp_check.py

Lines 134 to 144 in 53c82cc

try:
urllib.urlopen('ftp://' + re.search(r'^([^\/]+)', ftp).group(1) + '/NONEXISTINGFILEdgdjahxnedadbacxjbc/')
except Exception as error:
dir_not_found = str(error).replace('[Errno ftp error] ', '')
print(dir_not_found)
try:
urllib.urlopen('ftp://' + re.search(r'^([^\/]+)', ftp).group(1) + '/NONEXISTINGFILEdgdjahxnedadbacxjbc')
except Exception as error:
file_not_found = str(error).replace('[Errno ftp error] ', '')
print(file_not_found)

What's the rationale behing trying to fetch non-existing directories and non-existing files on purpose ?

As a user, my first reaction was to think something went wrong.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions