需要一个分发文件的解决方案
我有一个由 asp.net MVC 编写的文件管理器应用程序。用户可以通过它上传、删除、重命名......任何文件。我把这个程序部署在D分区上,现在它已满,我添加了一个新硬盘。我想将上传的新文件写入新硬盘(E分区)。现在有些文件位于 D: 上,有些文件位于 E: 上。 我想将文件分布在不同的分区中。 有没有任何解决方案可以管理所有文件而不对我的程序代码进行任何更改。 请不要提供硬合并。 我认为可以通过将一个文件夹链接到多个文件夹来实现。
I have a file manager application that is writed by asp.net MVC. User can upload, delete, rename and ... any file by it. I deploy this program on D partition and now It is full and I added a new hard disk. I want to write the new file uploaded on the new hard disk (E partition). now some files are on D: and some files are on E: .
I want to distribute the files in different partitions.
Is there any solution to manage all files without doing any change in the code of my program.
Please don't offer hard merging.
I think it is possible by link one folder to multi folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设这是 Windows,操作系统可以自己完成此操作;不要将磁盘安装为 E:,而是在 D: 上的某个位置创建一个空文件夹,然后将新驱动器安装到那里。这可以通过不同的途径在大多数操作系统上使用。
开始=>右键单击计算机=>管理=>存储=>磁盘管理
找到驱动器,右键单击,更改驱动器号和路径...,添加...,挂载到以下空 NTFS 文件夹中
Assuming this is Windows, the operating system can do this itself; instead of mounting the disk as E:, create an empty folder somewhere on D: and mount the new drive there. This is available on most operating systems, via different routes.
Start => right-click Computer => Manage => Storage => Disk Management
find the drive, right-click, Change Drive Letter and Paths..., Add..., Mount in the following empty NTFS folder