mjpclab / go-http-file-server

Simple command line based HTTP file server to share local file system
MIT License
370 stars 56 forks source link

关于windows下盘跨越的问题? #1

Closed T4di5 closed 4 years ago

T4di5 commented 4 years ago

大佬,在默认情况,只能返回到当前绝对路径的根磁盘,例如D:/111/bbb/ccc.txt,就只能回到D: 可以跨越到C盘/F盘么?

marjune163 commented 4 years ago

目前的变通办法是使用空根目录(-R),并挂载所有的分区到根URL或子路径,例如:

ghfs -R -a #DriveC#C:\ #DriveD#D:\ #DriveE#E:\

这样页面根下面就会有DriveC, DriveD, DriveE。