Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit64b68d0

Browse files
committed
minor#10927 Update filesystem.rst (atailouloute)
This PR was merged into the 3.4 branch.Discussion----------Update filesystem.rstAdd missing doc for `tempnam` methodCommits-------de2f608 Update filesystem.rst
2 parents057f279 +de2f608 commit64b68d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎components/filesystem.rst‎

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp