Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File::Listing::dosftp and 24-hour times [rt.cpan.org #73730] #9

Open
plicease opened this issue Sep 29, 2020 · 1 comment
Open

File::Listing::dosftp and 24-hour times [rt.cpan.org #73730] #9

plicease opened this issue Sep 29, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@plicease
Copy link
Member

https://rt.cpan.org/Ticket/Display.html?id=73730

Hallo,

 File::Listing::dosftp could not handle 24-hour times, e.g. in '23.02.2011 
 17:10    <DIR>          Documents'.

You have to change
         /^(\d\d-\d\d-\d\d\s+\d\d:\d\d\wM)   # Date and time info
         \s+                                      # Some space
         (<\w{3}>|\d+)                            # Dir or Size
         \s+                                      # Some more space
         (.+)$                                    # File name
        /x
to
/^(\d\d-\d\d-\d\d\s+\d\d:\d\d[\w]?[M]?)   # Date and time info
         \s+                                      # Some space
         (<\w{3}>|\d+)                            # Dir or Size
         \s+                                      # Some more space
         (.+)$                                    # File name
        /x

Mit freundlichen Grüßen / Kind regards

i.A.
Manfred Lauer

**********************************************
Manfred Lauer
Information Services

Tel    +49.6304.74-426
Fax   +49.6304-74-1426

[email protected]
www.kob.de
**********************************************
File::Listing::dosftp  (GAAS/File-Listing-6.03.tar.gz)

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\mlauer.WOLFSTEIN>perl -v

This is perl 5, version 12, subversion 2 (v5.12.2) built for 
MSWin32-x86-multi-thread

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or 
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


C:\Users\mlauer.WOLFSTEIN>


****************************************************************************
KARL OTTO BRAUN GmbH & Co. KG
Lauterstraße 50
67752 Wolfstein
Postfach 1140
67751 Wolfstein
Deutschland/Germany

HRA 21123 Amtsgericht Kaiserslautern 
Persönlich haftender Gesellschafter: Hans Braun GmbH Wolfstein
HRB 21019 Amtsgericht Kaiserslautern
Geschäftsführer: Dr. Gerhard F. Braun 
******************************************************************************
@plicease
Copy link
Member Author

The previous maintainer commented:

It would not parse your sample date (23.02.2011) with that regexp.

@plicease plicease added bug Something isn't working help wanted Extra attention is needed labels Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

1 participant