将目录合并为虚拟目录

发布于 2024-08-06 05:05:53 字数 1118 浏览 4 评论 0原文

在 Windows XP 中 有人知道一种可以将多个目录映射到一个虚拟驱动器或目录的软件吗?

当我打开虚拟目录时,我想查看映射目录中的所有文件,就像它是一个物理目录一样。


Linux软件mhddfs似乎完全符合我的需要。

来自 http://svn.uvw.ru/mhddfs/trunk/README

Consider we have two hard drives with the content below:

/hdd1             /hdd2
|                 |
+-- /dir1         +-- /dir1
|   |             |   |
|   +- file2      |   +- file4
|                 |   +- file2
+-- file1         |
|                 +-- file5
+-- /dir2         |
    |             +-- /dir3
    +- file3          |
                      +- file6

mounting this tree with the command:

mhddfs /hdd1,/hdd2 /hdd_common

into the specified file system point we will see a combined tree.

In the united tree we can see all the directories and files. Note
file2 of 2nd hdd is not visible (because 1st hdd  has  the  file2
already).

/hdd_common
|
+-- /dir1
|   |
|   +-- file2  -> /hdd1/dir1/file2
|   +-- file4
|
|-- /dir2
|   |
|   + file3
|
+-- /dir3
|   |
|   +-- file6
|
+-- file1
+-- file5

谢谢

in Windows XP
Does anybody know a software that maps multiple directories to ONE virtual drive or directory?

When I open the virtual directory, I want to see all files from mapped directories as if it was one physical dir.


Linux software mhddfs seems to correspond exactly to my need.

from http://svn.uvw.ru/mhddfs/trunk/README

Consider we have two hard drives with the content below:

/hdd1             /hdd2
|                 |
+-- /dir1         +-- /dir1
|   |             |   |
|   +- file2      |   +- file4
|                 |   +- file2
+-- file1         |
|                 +-- file5
+-- /dir2         |
    |             +-- /dir3
    +- file3          |
                      +- file6

mounting this tree with the command:

mhddfs /hdd1,/hdd2 /hdd_common

into the specified file system point we will see a combined tree.

In the united tree we can see all the directories and files. Note
file2 of 2nd hdd is not visible (because 1st hdd  has  the  file2
already).

/hdd_common
|
+-- /dir1
|   |
|   +-- file2  -> /hdd1/dir1/file2
|   +-- file4
|
|-- /dir2
|   |
|   + file3
|
+-- /dir3
|   |
|   +-- file6
|
+-- file1
+-- file5

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

家住魔仙堡 2024-08-13 05:05:53

这并不是您想要的解决方案,但如果您可以接受所有源目录在新目标中都有自己的子目录,您可以查看 Windows 工具 Sysinternals 套件的连接点

它允许您创建和管理符号链接。你的树结构会是这样的:

E:\hdd_common
├───hdd1
│   └───some folder structure [...]
└───hdd2
    └───some other folder structure [...]

称它为:

junction "e:\hdd_common\hdd1" "f:\"
junction "e:\hdd_common\hdd2" "g:\"

It's not quite the solution you want, but if you can live with all source directories having their own sub directory in a new target, you can check out the Windows tool junction from the Sysinternals Suite.

It allows you to create and manage symbolic links. your tree structure would be something like:

E:\hdd_common
├───hdd1
│   └───some folder structure [...]
└───hdd2
    └───some other folder structure [...]

Call it like:

junction "e:\hdd_common\hdd1" "f:\"
junction "e:\hdd_common\hdd2" "g:\"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文