> For the complete documentation index, see [llms.txt](https://senselab.gitbook.io/senselab-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://senselab.gitbook.io/senselab-docs/vendor/symfony/filesystem/changelog.md).

# CHANGELOG

## 7.1

* Add the `Filesystem::readFile()` method

## 7.0

* Add argument `$lock` to `Filesystem::appendToFile()`

## 5.4

* Add `Path` class
* Add `$lock` argument to `Filesystem::appendToFile()`

## 5.0.0

* `Filesystem::dumpFile()` and `appendToFile()` don't accept arrays anymore

## 4.4.0

* support for passing a `null` value to `Filesystem::isAbsolutePath()` is deprecated and will be removed in 5.0
* `tempnam()` now accepts a third argument `$suffix`.

## 4.3.0

* support for passing arrays to `Filesystem::dumpFile()` is deprecated and will be removed in 5.0
* support for passing arrays to `Filesystem::appendToFile()` is deprecated and will be removed in 5.0

## 4.0.0

* removed `LockHandler`
* Support for passing relative paths to `Filesystem::makePathRelative()` has been removed.

## 3.4.0

* support for passing relative paths to `Filesystem::makePathRelative()` is deprecated and will be removed in 4.0

## 3.3.0

* added `appendToFile()` to append contents to existing files

## 3.2.0

* added `readlink()` as a platform independent method to read links

## 3.0.0

* removed `$mode` argument from `Filesystem::dumpFile()`

## 2.8.0

* added tempnam() a stream aware version of PHP's native tempnam()

## 2.6.0

* added LockHandler

## 2.3.12

* deprecated dumpFile() file mode argument.

## 2.3.0

* added the dumpFile() method to atomically write files

## 2.2.0

* added a delete option for the mirror() method

## 2.1.0

* 24eb396 : BC Break : mkdir() function now throws exception in case of failure instead of returning Boolean value
* created the component


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://senselab.gitbook.io/senselab-docs/vendor/symfony/filesystem/changelog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
