mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
skip creation for root
This commit is contained in:
parent
bea162c34c
commit
c6b646e92c
|
@ -56,6 +56,10 @@ func (fs *Filer) KeepConnectedToMaster() {
|
||||||
|
|
||||||
func (f *Filer) CreateEntry(entry *Entry) error {
|
func (f *Filer) CreateEntry(entry *Entry) error {
|
||||||
|
|
||||||
|
if string(entry.FullPath) == "/" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
dirParts := strings.Split(string(entry.FullPath), "/")
|
dirParts := strings.Split(string(entry.FullPath), "/")
|
||||||
|
|
||||||
// fmt.Printf("directory parts: %+v\n", dirParts)
|
// fmt.Printf("directory parts: %+v\n", dirParts)
|
||||||
|
|
Loading…
Reference in a new issue