Skip to content

Add a limit to the size of the local cache #11

Open
@pjbull

Description

@pjbull

Is there a package that will implement this for us?

We may need to create an LRU cache that we check the size of and remove files before downloading more. The tricky part about this being LRU cache is that we manipulate atime and mtime to match the cloud exactly. Perhaps we can abuse ctime to store the cached date so that we can sort by what has been downloaded most recently? Or maybe we stop overriding atime and trust that?

Also needs research: are there fast platform independent ways to estimate size of a directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions