wget递归没有按预期工作
wget recursive not working as expected
想知道我是否忽略了显而易见的事情
我正在尝试使用
wget -rl 0 -A "*.fna.gz" ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/Acinetobacter_nosocomialis/all_assembly_versions
下载ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/Acinetobacter_nosocomialis/all_assembly_versions/
中包含的所有目录中匹配*.fna.gz
的所有文件
如果您访问上面的 link,您将看到一个以 GCA
开头的目录列表。我想要那些目录中与 *.fna.gz
匹配的所有文件,但是当我 运行 命令时我什么也得不到。我想知道 wget 是否没有将 GCA*
目录识别为目录,这就是问题所在?还是我的 wget 命令有问题?
我很怀疑,因为当我尝试使用 FileZilla 下载目录时,我得到:
GCA_000248315.2_ASM24831v2: Not a regular file
Error: Critical file transfer error
这些不是目录,而是指向其他地方的链接。文件列表中没有给出目标文件类型的信息,即目录或纯文件或其他任何类型。因此 wget 可能会采用普通文件而不是遵循它。
显然这没有按预期工作,因为服务器上的错误将指向目录的符号链接显示为普通文件。因此,正如@Steffen Ullrich 提到的,"There is no information in the file listing which gives the type of the target file, i.e. if directory or plain file or whatever. Thus wget will probably assume plain file and not follow it." 感谢 FileZilla IRC 上的 codesquid_ 的澄清。
在
跟进有关解决方法的问题
想知道我是否忽略了显而易见的事情
我正在尝试使用
wget -rl 0 -A "*.fna.gz" ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/Acinetobacter_nosocomialis/all_assembly_versions
下载ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/Acinetobacter_nosocomialis/all_assembly_versions/
中包含的所有目录中匹配*.fna.gz
如果您访问上面的 link,您将看到一个以 GCA
开头的目录列表。我想要那些目录中与 *.fna.gz
匹配的所有文件,但是当我 运行 命令时我什么也得不到。我想知道 wget 是否没有将 GCA*
目录识别为目录,这就是问题所在?还是我的 wget 命令有问题?
我很怀疑,因为当我尝试使用 FileZilla 下载目录时,我得到:
GCA_000248315.2_ASM24831v2: Not a regular file
Error: Critical file transfer error
这些不是目录,而是指向其他地方的链接。文件列表中没有给出目标文件类型的信息,即目录或纯文件或其他任何类型。因此 wget 可能会采用普通文件而不是遵循它。
显然这没有按预期工作,因为服务器上的错误将指向目录的符号链接显示为普通文件。因此,正如@Steffen Ullrich 提到的,"There is no information in the file listing which gives the type of the target file, i.e. if directory or plain file or whatever. Thus wget will probably assume plain file and not follow it." 感谢 FileZilla IRC 上的 codesquid_ 的澄清。
在
跟进有关解决方法的问题