在符号链接和文件夹之间自动切换 [英] Automatically Switching Between Symbolic Links and Folders

查看:70
本文介绍了在符号链接和文件夹之间自动切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前将我的Dropbox保存在外部驱动器上。

I currently have my Dropbox saved on an external drive.

我想弄清楚,当我没有外部驱动器时,是否有可能至少有这两种事情:

I'm trying to figure out if at least one of theses two things is possible when I do not have my external drive with me:

我可以创建某种开关以便当外部驱动器断开连接时,符号链接自动成为一个文件夹,我仍然可以像往常一样存储信息,而下次我连接外部驱动器,它将再次变为符号链接,并上传在断开连接时存储的文件?

Can I create some kind of 'switch' so that when my external drive disconnects, the symbolic link automatically become a folder which I can still store my info in like usual, and next time I connect my external drive it will become a symbolic link again and upload the files that I stored while the drive was disconnected?

还是我至少可以将符号链接指向本地文件夹?当驱动器断开连接,然后在连接驱动器时又指向Dropbox文件夹,同时仍然使本地文件夹自动同步到Dropbox文件夹吗?

Or could I at least have the symbolic link point to a local folder when the drive is disconnected and then point back to the Dropbox folder when the drive is connected while still having the local folder auto-sync to the Dropbox folder?

谢谢! / p>

Thanks!

推荐答案

我不完全了解您的情况,但是如果您希望灵活地创建指向可能在某一时刻连接的外部驱动器的符号链接并在其他时间断开连接, ref = https://www.dropboxforum.com/t5/Syncing-and-uploads/Dropbox-Folders-on-different-drives/td-p/251721 rel = nofollow noreferrer>投递箱不是一个好选择为此。据我了解,准备删除文件:)

I don't fully understand your situation but if you want flexibility with creating symlinks to external drives that may be connected at one point and disconnected at other times, it seems like dropbox is not a good option for that. Prepare for file deletion, as I learned :)

我发现带有同步 适用于Linux的应用正在完成这项工作。我们会看看它是否继续。

I am finding that Google Drive with this Insync app for Linux is achieving the job. We'll see if it continues to.

编辑:Dropbox支持告诉我,实际上Dropbox不支持与断开连接的外部驱动器的符号链接。结果是删除了符号链接指向的所有内容。他们的回应是:

Dropbox Support told me that indeed dropbox does not support symlinks to external drives which get disconnected. It results in deleting everything the symlink pointed to. Here's their response:

你好,

米·泰勒。感谢您联系Dropbox支持!

I'm Tyler. Thanks for contacting Dropbox Support!

当前,Dropbox桌面应用程序在任何操作系统上均不支持此功能。

Dropbox可以与外部硬盘驱动器一起使用,只要您可以确保在Dropbox运行时驱动器始终连接到计算机。 如果在Dropbox运行时将驱动器与计算机断开连接,则在意识到整个驱动器已被删除之前,Dropbox软件将有很小的机会开始删除文件。另外,为使Dropbox发挥最佳性能,您应确保将驱动器格式化为NTFS(Windows),HFS(Mac OS X)或支持扩展属性的文件系统(Linux)。

Dropbox can be used with an external hard drive as long as you can ensure the drive is always connected to your computer while Dropbox is running. If the drive is ever disconnected from the computer while Dropbox is running there is a small chance that the Dropbox software will start deleting files before realizing that the entire drive has been removed. Also, for Dropbox to work best you should make sure that the drive is formatted as NTFS (Windows), HFS (Mac OS X) or a file system that supports extended attributes (Linux).

这篇关于在符号链接和文件夹之间自动切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆