将文件路径以”..\”开头会做什么?

huangapple go评论79阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年7月25日 00:22:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/63077614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定