如何检查Path是否是相对的? [英] How can I check if Path is relative?
本文介绍了如何检查Path是否是相对的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试从参数中读取路径.当前,该路径只能作为绝对路径给出.我想使该路径也可以作为相对路径,但是如何检查该相对路径是否正确?
你有什么主意吗?
问候
Painjofshem
Hi guys,
I''m trying to read out a path from a parameter. Currently, this path can just be given as an absolute path. I want to make it possible to give this path also as a relative path, but how can I check if this relative path is correct?
Do you have any idea?
Greetings
Painjofshem
推荐答案
看看本页 [ ^ ],并点击Path
类文档的链接.
Take a look at this page[^], and also follow the link to the documentation of the Path
class.
这篇关于如何检查Path是否是相对的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文