Skip to content

time.now() should be time.time() #1

@nonbeing

Description

@nonbeing

Thank you for this excellent sample FS using python-fuse! It's really helped me a lot as an example FUSE filesystem.

I think there's a small error (at least pylint thinks so):

    def read(self, offset, length):
        stat.st_atime = time.now()

should be

    def read(self, offset, length):
        stat.st_atime = time.time()

since time doesn't have now() and also you also use time.time() in another part of the code:

def now(self):
        self.atime = time.time()   # time of last acces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions