Skip to content

Releases: Innmind/Filesystem

6.4.0

18 May 12:23
6.4.0
ab2af16
Compare
Choose a tag to compare

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 via Adapter\Filesystem the sub directories are no longer loaded if not modified
  • Throw an exception when failing to load a file

6.3.2

30 Apr 08:12
6.3.2
f0285e2
Compare
Choose a tag to compare

Changed

  • Innmind\Filesystem\File\Content\Chunkable and Innmind\Filesystem\Chunk are declared immutable (released as a bugfix since it should have been here since the start)

6.3.1

15 Apr 09:08
6.3.1
a6363f3
Compare
Choose a tag to compare

Changed

  • Innmind\Filesystem\Directory is declared immutable (released as a bugfix since it should have been here since the start)

6.3.0

31 Mar 14:26
6.3.0
8eff20d
Compare
Choose a tag to compare

Added

  • Innmind\Filesystem\File\Content\Chunks

6.2.0

29 Jan 11:06
6.2.0
45fea42
Compare
Choose a tag to compare

Changed

  • Innmind\Filesystem\Adapter\Filesystem::mount() now accepts Innmind\Stream\Capabilities as a second argument
  • Innmind\Filesystem\Stream\LazyStream is now declared internal, future versions may introduce BC breaks

6.1.0

02 Jan 09:41
6.1.0
dbdb001
Compare
Choose a tag to compare

Added

  • Innmind\Filesystem\CaseSensitivity enum
  • Innmind\Filesystem\Adapter\Filesystem::withCaseSensitivity()

6.0.0

18 Dec 10:17
6.0.0
67ad49d
Compare
Choose a tag to compare

Added

  • Innmind\Filesystem\Name::of() named constructor
  • Innmind\Filesystem\Name::str(): Innmind\Immutable\Str
  • Innmind\Filesystem\File::withContent(): Innmind\Filesystem\File
  • Innmind\Filesystem\File\File::of() named constructor
  • Innmind\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 an Innmind\Immutable\Sequence<Innmind\Filesystem\File>

Changed

  • Innmind\Filesystem\Directory\Directory::remove() no longer unwraps the whole directory
  • Innmind\Filesystem\Directory\Directory::filter() no longer erase the previous removals

Deprecated

  • Innmind\Filesystem\Name constructor
  • Innmind\Filesystem\File\File constructor
  • Innmind\Filesystem\Adapter::all()

Removed

  • Innmind\Filesystem\Adapter\Chunk
  • Innmind\Filesystem\File\Content\AtPath::stream()
  • Innmind\Filesystem\File\Content\OfStream::stream()

5.2.0

24 Sep 09:20
5.2.0
5c61a55
Compare
Choose a tag to compare

Added

  • Innmind\Filesystem\Chunk
  • Innmind\Filesystem\File\Content\Chunkable
  • Innmind\Filesystem\File\Content\Line::str(): Innmind\Immutable\Str

5.1.0

24 Sep 09:03
5.1.0
6420dea
Compare
Choose a tag to compare

Changed

  • Innmind\Filesystem\Stream\LazyStream::end() is declared as mutation free

5.0.0

30 Jan 17:46
5.0.0
20c8f94
Compare
Choose a tag to compare

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 returns Innmind\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, use Directory::of() instead
  • Innmind\Filesystem\Directory::get() now returns Innmind\Immutable\Maybe<Innmind\Filesystem\File> instead of throwing an exception
  • Innmind\Filesystem\Directory::foreach() now returns Innmind\Immutable\SideEffect
  • Innmind\Filesystem\Directory::filter() now returns Innmind\Filesystem\Directory
  • Innmind\Filesystem\Directory::modifications() has been replaced by Innmind\Filesystem\Directory::removed()
  • Innmind\Filesystem\Directory::content() no longer contains the names of the files it contains
  • Innmind\Filesystem\Adapter\Filesystem constructor is now private, use Filesystem::mount() instead
  • Innmind\Filesystem\Adapter\HashedName constructor is now private, use HashedName::of() instead
  • Innmind\Filesystem\Adapter\InMemory constructor is now private, use InMemory::new() instead
  • Innmind\Filesystem\Adapter\Logger constructor is now private, use Logger::psr() instead
  • Innmind\Filesystem\Adapter::get() now returns Innmind\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