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

Commitde2f608

Browse files
authored
Update filesystem.rst
1 parent057f279 commitde2f608

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