dot和dotdot是什么意思 [英] What does dot and dotdot means
本文介绍了dot和dotdot是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 QDir::entryList 列出文件夹时,dot 和 dotdot 是什么意思?
对我来说并不是很明显.
What is the meaning of dot and dotdot when listing folders using QDir::entryList?
It is not really obvious to me.
推荐答案
.
表示当前目录",..
表示父目录".
.
means "current directory" and ..
means "parent directory".
例如,如果您的目录是 C:\Users\Bob
,.
指的是 C:\Users\Bob
和 ..
指的是 C:\Users
.
For example, if your directory is C:\Users\Bob
, .
refers to C:\Users\Bob
and ..
refers to C:\Users
.
您会发现这在编程和计算机中普遍存在.
You will find that this is universal in programming and computers in general.
如果您不希望列表包含这些特殊目录,您可以在过滤器中包含 QDir::NoDotAndDotDot
.
If you don't want your list to contain these special directories, you can include QDir::NoDotAndDotDot
in your filter.
这篇关于dot和dotdot是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文