简体   繁体   English

mac osx ln命令:使用别名或符号链接链接目录mac osx?

[英]mac osx ln command: linking directories mac osx with alias or symbolic link?

I have a tool (EVEHQ) on my bootcamp windows xp installed. 我在Bootcamp Windows XP上安装了一个工具(EVEHQ)。 I'm running parallels to use the application. 我正在运行并行以使用该应用程序。 works great. 效果很好。 Problem is the application has a hardwired (binary) directory path it uses to store some data. 问题在于应用程序具有用于存储某些数据的硬连接(二进制)目录路径。 I need the data on the mac side. 我需要Mac端的数据。 I can simply copy the files by hand or automator to sync the files. 我可以简单地手动或自动复制文件来同步文件。 But my idea was to create a link on the bootcamp filesystem so the application thinks it is storing it on the orginal location but in fact the files are stored where I use them. 但是我的想法是在Bootcamp文件系统上创建一个链接,因此应用程序认为它会将其存储在原始位置,但实际上文件存储在我使用它们的位置。

where I use the files (XML files): 我在哪里使用文件(XML文件):

/Volumes/Macintosh HD/Users/fred/Library/Application Support/EVE Online/p_drive/My Documents/EVE/fittings

where EVEHQ the windows app stores them on the bootcamp partition: Windows应用程序EVEHQ将它们存储在Bootcamp分区上的位置:

/Volumes/c/Documents and Settings/fred/My Documents/Eve/fittings

so I used: 所以我用了

iMac:Eve fred$ pwd
/Volumes/c/Documents and Settings/fred/My Documents/Eve
iMac:Eve fred$ sudo ln -s "/Volumes/Macintosh HD/Users/fred/Library/Application Support/EVE Online/p_drive/My Documents/EVE/fittings" fittings
Password:
ln: fittings: Function not implemented

What went wrong there? 那里出了什么问题? google tells me it is possible to create symbolic link to a directory. 谷歌告诉我,可以创建指向目录的符号链接。 Is it because its cross partition? 是因为它的交叉分区? I thought on a unix filesystem there are no physical partitions just directory mountpoints. 我认为在UNIX文件系统上,没有物理分区,只有目录安装点。 I'm not very experienced with unix. 我对Unix不太了解。

Thanks for your feedback. 感谢您的反馈意见。 kind regards Fred 亲切的问候弗雷德

It is because you want to make a link from a Windows partition, which doesn't support symbolic link. 这是因为您要从Windows分区建立链接,该分区不支持符号链接。 However, you can do the opposite: a link from the Mac partition to the Windows one, so that EvE stores your fitting on the Windows partition. 但是,您可以执行相反的操作:从Mac分区到Windows的链接,以便EvE将您的配件存储在Windows分区上。

The immediate problem is that the file system driver doesn't support creation of symbolic links on that volume. 直接的问题是文件系统驱动程序不支持在该卷上创建符号链接。

But, anyway, your plan wouldn't work. 但是,无论如何,您的计划是行不通的。 First, Windows wouldn't understand and respect the symbolic link. 首先,Windows无法理解和尊重符号链接。 So, file access wouldn't get redirected. 因此,文件访问不会被重定向。 Second, even if it did recognize the symbolic link, it wouldn't understand the path it pointed to. 其次,即使它确实识别出符号链接,也不会理解其指向的路径。 The path string "/Volumes/Macintosh HD/Users/fred/Library/Application Support/EVE Online/p_drive/My Documents/EVE/fittings" isn't meaningful to Windows. 路径字符串“ /卷/ Macintosh HD /用户/ fred /库/应用程序支持/ EVE Online / p_drive /我的文档/ EVE /配件”对Windows没有意义。 (Symbolic links are processed basically as strings.) (符号链接基本上作为字符串处理。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM