walk()遍历目录,应用样式表。
在向索引添加文件时,可以遍历目录。
You can recurse across directories when you add files to an index.
通过遍历目录树中你可以找到哪些进程正在运行。
By walking the directory tree you can find which processes are running.
这是一款通过输入路径就可以遍历目录或文件的软件。
This is a path through the importation can traverse the file or directory software.
r选项让rsync递归遍历目录并复制整个目录结构。
The -r option tells rsync to recurse into the directories and copy the entire structure.
除非设置了该位,否则无法遍历目录(进入目录并列举目录)。
A directory cannot be traversed (entered and cataloged) unless this bit is set.
使用相对路径允许您通过遍历目录树,链接到一个您需要的文件,例如。
The use of relative paths allows you to link to a file by walking up and down the tree of directories as needed, for instance.
我们可以通过代码、XAML文件、配置文件或者遍历目录来生成模块的目录。
The catalog of modules can be populated via code, a XAML file, a configuration file, or by walking a directory.
主要的功能是遍历目录,根据命令行参数可以实现文件拷贝文件查看等功能。
Their main role is to traverse the directory, according to the command line parameters can be achieved in document features such as copy files to view.
需要遍历目录,重命名文件,特别的改变特定类型文件的名称后缀为其他后缀。
You need to rename files throughout a subtree of directories, specifically changing the names of all files with a given extension so that they end in another extension.
GNU文件实用程序(fileutils)可以完成递归目录删除和目录移动,但是在版本4.1之前,当遍历目录结构时,它只是简单的遵循“. .”这个特殊条目。
The GNU file utilities (fileutils) can do recursive directory deletions and directory moves, but before V4.1, it simply followed the ".. "special entry as it walked the directory structure.
遍历当前工作目录下的所有文件。
目录遍历也需要改进。
它只做最基本的事:递归地遍历源目录,在此过程中将样式表应用到每个XML文件以产生html格式的网站。
It does only the most basic thing: it recursively walks through a source directory, applying a style sheet on every XML file along the way to produce the Web site in HTML.
下列代码会遍历spec目录,搜索适合于给定机器的文件名。
The following code will traverse the spec directory, searching for a filename suitable for a given machine.
清单1:spec目录遍历。
OBEXFTP服务中的文件目录遍历漏洞。
要遍历源目录结构,需要使用Python模块os中的walk方法。
To do the traversal of the source directory structure you use the walk method in the Python OS module.
要完成此任务,请遍历 /etc/yum.repos.d/目录中的元素,将除了 fedora-devel.repo 以外的所有 元素都改为enabled=0;
d/ directory and changing all of them except the fedora-devel.
如果是目录,并且不是“。”,则递归地遍历该目录。
If it is and it is not '. ', it traverses recursively into the directory.
正如您所见到的,该文件是深度优先遍历,但不一定在任何目录内按字母顺序来进行。
As you can see, the file traversal is depth first but not necessarily in any alphabetical order within a directory.
如果您的程序需要遍历文件系统(递归地遍历子目录),那么要提防攻击者可能会利用您正在遍历的目录结构。
If your program walks the file system, recursively iterating through subdirectories, be careful if an attacker could ever manipulate the directory structure you're walking.
所以,在程序开始遍历这些文件的时候,假设为了确定目录的总大小,就必须逐一重新查询文件系统。
So when the program starts to loop through the files, perhaps to determine the directories overall size, it has to requery the file system one by one.
它递归地遍历一组目录,在这个过程中应用样式表。
It recursively walks through a set of directories, applying the style sheet as it goes along.
与前面的方法相似,但是它给出两个附加的参数来指定访问选项,以及遍历将访问文件树中的多少个目录。
Is similar to the preceding method but gives you two additional parameters to specify visit options and how many directories deep into the file tree the traversal should go.
每个组件有它自己的Makefile,并且顶级Makefile遍历它所有的子目录构建它所找到的所有Makefile。
Each component has its own Makefile, and the top level Makefile walks through each of its sub-directories building all Makefiles it finds.
它载入一个XML文件——通过servlet的配置上下文中的目录和一个常量文件名指定,然后遍历文件内容。
It loads up an XML file — specified through a directory in the servlet's configuration context and a constant filename — and then iterates over the content of that file.
这取决于有多少文件在目录,我建议使用一个字典来保持你的价值是你遍历文件夹。
Depending on how many files are in the directory I'd suggest using a Dictionary to hold your values as you iterate through the folder.
目录遍历是另一种注入类型的攻击,攻击者欺骗文件系统读或写服务器不允许操作的文件。
Directory traversal is another injection-style attack, wherein a malicious user tricks filesystem code into reading and/or writing files that the Web server shouldn't have access to.
目录结构的哈希值可以被计算并用来与其它副本比较来减少目录的遍历和网络流量。
Hashes of directory structures can be calculated and compared with other replicas to reduce directory walking and network traffic.
应用推荐