Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64b68d0

Browse filesBrowse files
committed
minor #10927 Update filesystem.rst (atailouloute)
This PR was merged into the 3.4 branch. Discussion ---------- Update filesystem.rst Add missing doc for `tempnam` method Commits ------- de2f608 Update filesystem.rst
2 parents 057f279 + de2f608 commit 64b68d0
Copy full SHA for 64b68d0

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎components/filesystem.rst

Copy file name to clipboardExpand all lines: components/filesystem.rst
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ isAbsolutePath
283283
// returns false
284284
$fileSystem->isAbsolutePath('../dir');
285285

286+
tempnam
287+
~~~~~~~
288+
289+
:method:`Symfony\\Component\\Filesystem\\Filesystem::tempnam` creates a temporary file with a unique filename, and returns its path, or throw an exception on failure::
290+
291+
// returns a path like : /tmp/prefix_wyjgtF
292+
$filesystem->tempnam('/tmp', 'prefix_');
293+
286294
dumpFile
287295
~~~~~~~~
288296

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.