Mac OS Windows 文件路径的等效文件路径
Mac OS Equivalent file path for Windows file path
我正在建立一个 Java 项目,它使用为我们的项目定制的 JBoss。在 JBoss 配置下的属性文件之一中,它具有各种文件的绝对路径,例如:
com.mycompany.abc.host.certificate=file:///c:/somedir/jboss/myproject/configuration/security/xxx/test.crt
我在装有 macOS Sierra 的 MacBook 上设置我的开发环境。对于相应的 Windows 路径,macOS 上的等效路径是什么,比如这个文件:/Users/john/jboss/myproject/configuration/security/xxx/test.crt
在 Finder 中,右键单击需要其路径的文件。然后按 Option 键 (alt
) 打开上下文菜单。 Select Copy "name_of_file" as path
。然后你有路径,例如
/Library/Preferences/com.apple.AppleFileServer.plist
要获取文件 URI,请添加 file://
,就像这样
file:///Library/Preferences/com.apple.AppleFileServer.plist
我正在建立一个 Java 项目,它使用为我们的项目定制的 JBoss。在 JBoss 配置下的属性文件之一中,它具有各种文件的绝对路径,例如:
com.mycompany.abc.host.certificate=file:///c:/somedir/jboss/myproject/configuration/security/xxx/test.crt
我在装有 macOS Sierra 的 MacBook 上设置我的开发环境。对于相应的 Windows 路径,macOS 上的等效路径是什么,比如这个文件:/Users/john/jboss/myproject/configuration/security/xxx/test.crt
在 Finder 中,右键单击需要其路径的文件。然后按 Option 键 (alt
) 打开上下文菜单。 Select Copy "name_of_file" as path
。然后你有路径,例如
/Library/Preferences/com.apple.AppleFileServer.plist
要获取文件 URI,请添加 file://
,就像这样
file:///Library/Preferences/com.apple.AppleFileServer.plist