From e2dd8974fcab7e375151f187692056f7bcc97a8d Mon Sep 17 00:00:00 2001 From: zhaozhi Date: Wed, 17 Feb 2016 17:48:46 +0800 Subject: [PATCH] cassandra_store still can not support directory listing --- go/filer/cassandra_store/cassandra_store.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/go/filer/cassandra_store/cassandra_store.go b/go/filer/cassandra_store/cassandra_store.go index 1c2be8a8e..e602548db 100644 --- a/go/filer/cassandra_store/cassandra_store.go +++ b/go/filer/cassandra_store/cassandra_store.go @@ -3,6 +3,8 @@ package cassandra_store import ( "fmt" + "github.com/chrislusf/seaweedfs/go/filer" + "github.com/chrislusf/seaweedfs/go/filer/flat_namespace" "github.com/chrislusf/seaweedfs/go/glog" "github.com/gocql/gocql" @@ -85,3 +87,20 @@ func (c *CassandraStore) Close() { c.session.Close() } } + +func (c *CassandraStore) FindDirectory(dirPath string) (dirId filer.DirectoryId, err error) { + return 0, flat_namespace.ErrNotImplemented +} +func (c *CassandraStore) ListDirectories(dirPath string) (dirs []filer.DirectoryEntry, err error) { + return nil, flat_namespace.ErrNotImplemented +} +func (c *CassandraStore) ListFiles(dirPath string, lastFileName string, limit int) (files []filer.FileEntry, err error) { + return nil, flat_namespace.ErrNotImplemented +} +func (c *CassandraStore) DeleteDirectory(dirPath string, recursive bool) (err error) { + return flat_namespace.ErrNotImplemented +} + +func (c *CassandraStore) Move(fromPath string, toPath string) error { + return flat_namespace.ErrNotImplemented +}