|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-04 23:12 UTC] draeli at draeli dot com
[2018-08-18 13:11 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2018-08-18 13:11 UTC] cmb@php.net
[2018-09-02 09:33 UTC] cmb@php.net
-Status: Feedback
+Status: No Feedback
[2018-09-02 09:33 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ Under Windows (XP Sp3), I have create a dir (with mkdir function) named 'Chouja Reideen - Love is..', when I read dir with SPL "RecursiveDirectoryIterator" and call method 'getType', I have this error message : "RuntimeException: SplFileInfo::getType() [splfileinfo.gettype]: Lstat". Too, when I try to rename (with rename function), I have this error message "No such file or directory". Dir really exist (with "getPathname" call method, name is correct) and I can't rename with system rename properties or MSDos rename function (and I have no solution to remove this dir ...). Reproduce code: --------------- foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator('E:\directoryTest'), \RecursiveIteratorIterator::SELF_FIRST) as $objCur) { echo '<hr />'; if ( preg_match('@^E:\\\directoryTest(.*)\.+$@U', $objCur->getPathname(), $out) ){ rename($objCur->getPathname(), 'E:\directoryTest\\' . $out[1]); var_dump($out[1]); } echo $objCur->getPathname() . '<br />'; echo $objCur->getType() . '<br />'; } Expected result: ---------------- List all file under a primary dir and rename file finish with one or more commat.