Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (Nette\Utils\Finder::find('*')->from($directory)->childFirst() as $file) {
- if (substr($file->getBasename(), -2) !== ';1') {
- continue;
- }
- rename($file->getPathname(), $file->getPath() . '/' . $file->getBasename(';1'));
- }
Advertisement
Add Comment
Please, Sign In to add comment