英文:
What does prepending a file path with "..\" do?
问题
我之前在让Java找到我想要使用的文件方面遇到了一些困难,直到我尝试在我的文件路径前面添加“..\”。然而,我不确定这样做具体有什么作用。我已经尝试在谷歌上搜索相关信息并在这个网站上进行了搜索,但没有出现相关的结果。
在文件路径前面添加“..\”是什么作用?
英文:
I had been having a difficult time getting Java to find the file I wanted it to use until I tried prepending ".." to the front of my file path. However, I'm not sure what this does specifically. I have tried to google the info and searched this website, but no relevant results popped up.
What does prepending a file path with "..\" do?
答案1
得分: 2
添加 ..
将意味着您正在引用父目录。
英文:
Appending ..
will mean that you are referring to the parent directory.
专注分享java语言的经验与见解,让所有开发者获益!
评论