Add and remove torrents from web interface (#84)
This commit is contained in:
parent
02842b1917
commit
2f18213660
49 changed files with 996 additions and 1170 deletions
fuse
|
@ -6,7 +6,6 @@ import (
|
|||
"runtime"
|
||||
|
||||
"github.com/billziss-gh/cgofuse/fuse"
|
||||
"github.com/distribyted/distribyted/config"
|
||||
"github.com/distribyted/distribyted/fs"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
@ -25,7 +24,7 @@ func NewHandler(fuseAllowOther bool, path string) *Handler {
|
|||
}
|
||||
}
|
||||
|
||||
func (s *Handler) Mount(fss map[string]fs.Filesystem, ef config.EventFunc) error {
|
||||
func (s *Handler) Mount(fss map[string]fs.Filesystem) error {
|
||||
folder := s.path
|
||||
// On windows, the folder must don't exist
|
||||
if runtime.GOOS == "windows" {
|
||||
|
@ -58,6 +57,8 @@ func (s *Handler) Mount(fss map[string]fs.Filesystem, ef config.EventFunc) error
|
|||
|
||||
s.host = host
|
||||
|
||||
log.Info().Str("path", folder).Msg("starting FUSE mount")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue