|
@@ -35,6 +35,16 @@ var (
|
|
|
ErrNullOperation = errors.New("FS_NULL_OPR")
|
|
|
)
|
|
|
|
|
|
+//Generate a File Manager redirection error message
|
|
|
func NewRedirectionError(targetVpath string) error {
|
|
|
return errors.New("Redirect:" + targetVpath)
|
|
|
}
|
|
|
+
|
|
|
+//Check if a file system is network drive
|
|
|
+func IsNetworkDrive(fstype string) bool {
|
|
|
+ if fstype == "webdav" || fstype == "ftp" {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ return false
|
|
|
+}
|