1
mirror of https://github.com/rclone/rclone synced 2025-01-16 21:07:28 +01:00

webgui: Move to new package fs/rc/webgui.

This commit is contained in:
Chaitanya 2020-05-29 15:35:39 +05:30 committed by Nick Craig-Wood
parent 0f7a2f0f3c
commit 5f56611a76
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/rclone/rclone/fs/rc/webgui"
"log"
"mime"
"net/http"
@ -80,7 +81,7 @@ func newServer(opt *rc.Options, mux *http.ServeMux) *Server {
fs.Logf(nil, "Serving files from %q", opt.Files)
fileHandler = http.FileServer(http.Dir(opt.Files))
} else if opt.WebUI {
if err := rc.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
if err := webgui.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
log.Fatalf("Error while fetching the latest release of Web GUI: %v", err)
}
if opt.NoAuth {

View File

@ -1,6 +1,6 @@
// Define the Web GUI helpers
package rc
package webgui
import (
"archive/zip"