3 # 2013-10-17 Andrea Urbani (matfanjol)
5 # - the response of "LIST -a" command contains
7 # - the response of "LIST" command contains
8 # the normal files (hidden files are not present)
9 # wget should use only "LIST -a" because it recognise
10 # the system as "UNIX Type: L8" and so it should see
11 # and download the hidden file too.
19 ###############################################################################
21 my $normalfile = <<EOF;
25 my $hiddenfile = <<EOF;
29 $normalfile =~ s/\n/\r\n/g;
30 $hiddenfile =~ s/\n/\r\n/g;
32 # code, msg, headers, content
34 '/normalfile.txt' => {
35 content => $normalfile,
37 '/hiddenfile.txt' => {
38 content => $hiddenfile,
43 my $cmdline = $WgetTest::WGETPATH . " --no-directories --recursive --level=1 ftp://localhost:{{port}}/";
45 my $expected_error_code = 0;
47 my %expected_downloaded_files = (
49 content => $normalfile,
52 content => $hiddenfile,
56 ###############################################################################
58 my $the_test = FTPTest->new (name => "Test-ftp-list-UNIX-hidden",
61 errcode => $expected_error_code,
62 output => \%expected_downloaded_files,
63 server_behavior => {list_no_hidden_if_list => 1});
64 exit $the_test->run();