Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Cache created File and Directory objects. #67

Open
bolinfest opened this issue Mar 29, 2015 · 0 comments
Open

Cache created File and Directory objects. #67

bolinfest opened this issue Mar 29, 2015 · 0 comments

Comments

@bolinfest
Copy link
Contributor

It seems wasteful to create duplicate File and Directory objects for the same path. For example, every time Directory.getSubdirectory() is invoked, it returns a new Directory.

The constructors of File and Directory should be private. Getting access to an instance of either should go through a creation method that has the ability to consult a cache.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant