aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/filesystem.go
diff options
context:
space:
mode:
authorZahoor Mohamed <zahoor@zahoor.in>2017-04-12 08:06:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-04-12 08:06:02 +0800
commit1d1d988aa7caf60d6769bb474d4ec2f872eaaad4 (patch)
tree87ce615cd260871466fc1862994123848059b861 /swarm/api/filesystem.go
parentdd37064a151a1333b79f2fcde097ebc530d895a3 (diff)
downloadgo-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.gz
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.bz2
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.lz
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.xz
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.zst
go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.zip
swarm/api: FUSE read-write support (#13872)
- Moved fuse related code in a new package, swarm/fuse - Added write support - Create new files - Delete existing files - Append to files (with limitations) - More test coverage
Diffstat (limited to 'swarm/api/filesystem.go')
-rw-r--r--swarm/api/filesystem.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/swarm/api/filesystem.go b/swarm/api/filesystem.go
index e7deaa32f..f5dc90e2e 100644
--- a/swarm/api/filesystem.go
+++ b/swarm/api/filesystem.go
@@ -68,7 +68,6 @@ func (self *FileSystem) Upload(lpath, index string) (string, error) {
log.Debug(fmt.Sprintf("uploading '%s'", localpath))
err = filepath.Walk(localpath, func(path string, info os.FileInfo, err error) error {
if (err == nil) && !info.IsDir() {
- //fmt.Printf("lp %s path %s\n", localpath, path)
if len(path) <= start {
return fmt.Errorf("Path is too short")
}
@@ -170,7 +169,7 @@ func (self *FileSystem) Upload(lpath, index string) (string, error) {
return hs, err2
}
-// Download replicates the manifest path structure on the local filesystem
+// Download replicates the manifest basePath structure on the local filesystem
// under localpath
//
// DEPRECATED: Use the HTTP API instead
@@ -269,7 +268,7 @@ func (self *FileSystem) Download(bzzpath, localpath string) error {
}
func retrieveToFile(quitC chan bool, dpa *storage.DPA, key storage.Key, path string) error {
- f, err := os.Create(path) // TODO: path separators
+ f, err := os.Create(path) // TODO: basePath separators
if err != nil {
return err
}