Closed backbone87 closed 11 years ago
I don't see the necessity or improvement of this.
File related operations should be in the File
object. Also the implementation.
File
will not be more lightweight if you extract the implementation of the methods into the Filesystem
class.
You just bloat the Filesystem
class.
This would also complicate the usage of the API. The developer may not know what to use:
$file->getSize()
or
$fs->getSize($file)
After talking in skype to tristan, we come to the conclusion, that his interpretation was a misunderstanding due to my falsy original ticket text. I clarified (hopefully)
This is implemented with the Simple* classes, isn't it?
The Simple*-Classes does not exist anymore.
By sharing one basic File implementation accross all (most) Filesystem implementations.
I do not want to change the interfaces. Only the implementation (specifically the AbstractFile and AbstractFilesystem implementation).
For example filesize: The Filesystem determines how big a file behind a pathname is
although clearify's the abstraction: The File object just abstracts a pathname within a specific filesystem. The Filesystem should decide how to access/manipulate/retrieve meta data from a pathname.