Releases: Innmind/Filesystem
Releases · Innmind/Filesystem
6.4.0
Added
Innmind\Filesystem\Adapter\InMemory::emulateFilesystem()
it will merge directories (instead of the overwriting done by::new()
)
Fixed
- Accessing the media type of a file no longer raise an error when it's unavailable, instead it defaults to
application/octet-stream
- When adding a
Directory
loaded viaAdapter\Filesystem
the sub directories are no longer loaded if not modified - Throw an exception when failing to load a file
6.3.2
6.3.1
6.3.0
6.2.0
6.1.0
6.0.0
Added
Innmind\Filesystem\Name::of()
named constructorInnmind\Filesystem\Name::str(): Innmind\Immutable\Str
Innmind\Filesystem\File::withContent(): Innmind\Filesystem\File
Innmind\Filesystem\File\File::of()
named constructorInnmind\Filesystem\Directory::files(): Innmind\Immutable\Sequence<Innmind\Filesystem\File>
Innmind\Filesystem\Adapter::root(): Innmind\Filesystem\Directory
Innmind\Filesystem\Directory::map(): Innmind\Filesystem\Directory
Innmind\Filesystem\Directory::flatMap(): Innmind\Filesystem\Directory
Innmind\Filesystem\File::rename(): Innmind\Filesystem\File
Innmind\Filesystem\Directory\Directory::of()
$files
parameter accepts anInnmind\Immutable\Sequence<Innmind\Filesystem\File>
Changed
Innmind\Filesystem\Directory\Directory::remove()
no longer unwraps the whole directoryInnmind\Filesystem\Directory\Directory::filter()
no longer erase the previous removals
Deprecated
Innmind\Filesystem\Name
constructorInnmind\Filesystem\File\File
constructorInnmind\Filesystem\Adapter::all()
Removed
Innmind\Filesystem\Adapter\Chunk
Innmind\Filesystem\File\Content\AtPath::stream()
Innmind\Filesystem\File\Content\OfStream::stream()
5.2.0
5.1.0
5.0.0
Added
Innmind\Filesystem\File\Content
Innmind\Filesystem\File\Content\Line
Innmind\Filesystem\File\Content\Lines
Innmind\Filesystem\File\Content\AtPath
Innmind\Filesystem\File\Content\OfStream
Innmind\Filesystem\File\Content\None
Innmind\Filesystem\Exception\FailedToWriteFile
Innmind\Filesystem\Exception\FailedToLoadFile
Changed
Innmind\Filesystem\File::content()
now returnsInnmind\Filesystem\File\Content
- Sets of loaded files are now lazy instead of deferred to avoid keeping in memory a whole directory tree
Innmind\Filesystem\Directory\Directory
constructor is now private, useDirectory::of()
insteadInnmind\Filesystem\Directory::get()
now returnsInnmind\Immutable\Maybe<Innmind\Filesystem\File>
instead of throwing an exceptionInnmind\Filesystem\Directory::foreach()
now returnsInnmind\Immutable\SideEffect
Innmind\Filesystem\Directory::filter()
now returnsInnmind\Filesystem\Directory
Innmind\Filesystem\Directory::modifications()
has been replaced byInnmind\Filesystem\Directory::removed()
Innmind\Filesystem\Directory::content()
no longer contains the names of the files it containsInnmind\Filesystem\Adapter\Filesystem
constructor is now private, useFilesystem::mount()
insteadInnmind\Filesystem\Adapter\HashedName
constructor is now private, useHashedName::of()
insteadInnmind\Filesystem\Adapter\InMemory
constructor is now private, useInMemory::new()
insteadInnmind\Filesystem\Adapter\Logger
constructor is now private, useLogger::psr()
insteadInnmind\Filesystem\Adapter::get()
now returnsInnmind\Immutable\Maybe<Innmind\Filesystem\File>
instead of throwing an exception
Removed
Innmind\Filesystem\Stream\NullStream
Innmind\Filesystem\File\File::withContent()
Innmind\Filesystem\Exception\FileNotFound
Innmind\Filesystem\Source
Innmind\Filesystem\Directory\Source
Innmind\Filesystem\File\Source
Innmind\Filesystem\Event\FileWasAdded
Innmind\Filesystem\Event\FileWasRemoved
Innmind\Filesystem\Directory::replaceAt()
Innmind\Filesystem\LazyAdapter
Innmind\Filesystem\Adapter\Lazy
Innmind\Filesystem\Adapter\CacheOpenedFiles