proper marking of file as deleted
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
type ConfigInterface interface {
|
||||
GetVersion() string
|
||||
GetToken() string
|
||||
GetPort() string
|
||||
GetDirectories() []string
|
||||
MeetsConditions(directory, fileID, fileName string) bool
|
||||
}
|
||||
|
||||
@@ -3,4 +3,5 @@ package config
|
||||
type ZurgConfig struct {
|
||||
Version string `yaml:"zurg"`
|
||||
Token string `yaml:"token"`
|
||||
Port string `yaml:"port"`
|
||||
}
|
||||
|
||||
@@ -24,6 +24,10 @@ func (z *ZurgConfigV1) GetToken() string {
|
||||
return z.Token
|
||||
}
|
||||
|
||||
func (z *ZurgConfigV1) GetPort() string {
|
||||
return z.Port
|
||||
}
|
||||
|
||||
func (z *ZurgConfigV1) GetDirectories() []string {
|
||||
var rootDirectories []string
|
||||
for directory := range z.Directories {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package config
|
||||
|
||||
type ZurgConfigV1 struct {
|
||||
ZurgConfig
|
||||
ZurgConfig `yaml:",inline"`
|
||||
Directories map[string]*DirectoryFilterConditionsV1 `yaml:"directories"`
|
||||
}
|
||||
type DirectoryFilterConditionsV1 struct {
|
||||
|
||||
Reference in New Issue
Block a user