We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ba24c commit ab239e6Copy full SHA for ab239e6
pkg/fs/ftp.go
@@ -197,6 +197,12 @@ func (f *fuseImpl) Flush(path string, fh uint64) int {
197
// UID and GID of the caller. File mode is always 0644 and Directory
198
// mode is always 0755.
199
func (f *fuseImpl) Getattr(path string, s *fuse.Stat_t, fh uint64) int {
200
+ if runtime.GOOS == "darwin" {
201
+ fn := filepath.Base(path)
202
+ if fn == ".DS_Store" || strings.HasPrefix("._", fn) {
203
+ return -fuse.ENOENT
204
+ }
205
206
log.Debugf("Getattr(%s, %d)", path, fh)
207
var e *ftp.Entry
208
var errCode int
0 commit comments