src/Filesystem/MountManager.php
public function readAndDelete($path)
    {
        [$prefix, $path] = $this->getPrefixAndPath($path);

        return $this->getFilesystem($prefix)->readAndDelete($path);
    }
public function readAndDelete($path)
    {
        [$prefix, $path] = $this->getPrefixAndPath($path);

        return $this->getFilesystem($prefix)->readAndDelete($path);
    }
public function readAndDelete ( $ path ) { [ $ prefix , $ path ] = $ this -> getPrefixAndPath ( $ path ) ; return $ this -> getFilesystem ( $ prefix ) -> readAndDelete ( $ path ) ; }
Read and delete a file.

@param string $path The path to the file.

@throws FileNotFoundException

@return string|false The file contents, or false on failure.
Read and delete a file .