In case you run into a cross-platform issue when retrieving the sub-path , use FilesystemIterator::UNIX_PATHS flag to fix it
RecursiveDirectoryIterator::getSubPathname
(PHP 5 >= 5.1.0)
RecursiveDirectoryIterator::getSubPathname — Get sub path and name
说明
public string RecursiveDirectoryIterator::getSubPathname
( void
)
Gets the sub path and filename.
Warning
本函数还未编写文档,仅有参数列表。
参数
此函数没有参数。
返回值
The sub path (sub directory) and filename.
参见
- RecursiveDirectoryIterator::getSubPath() - Get sub path
- RecursiveDirectoryIterator::key() - Return path and filename of current dir entry
info at diy-cms dot com ¶
2 years ago
