[TASK] File: add getNameWithoutExtension() method
authorAndreas Wolf <andreas.wolf@typo3.org>
Tue, 9 Oct 2012 08:16:04 +0000 (10:16 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 10 Oct 2012 14:05:37 +0000 (16:05 +0200)
commit39b8874621c7bf090bcebb7b086697d91b612124
treea817782475cab83810d1f66f4d17721b539e9c83
parentf0348a8b16ceb401445002c14f37b1d696eea73c
[TASK] File: add getNameWithoutExtension() method

There is currently no way to get the filename without its extension,
e.g. to create a new name for a file converted to another format. This
commits adds such a method, together with tests and a fix for names like
somefile.tar.gz.

Resolves: #41768
Releases: 6.0
Change-Id: Iad924d1be4100cf798e36f25a22a32b221b8aef7
Reviewed-on: http://review.typo3.org/15427
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/FileInterface.php
typo3/sysext/core/Tests/Unit/Resource/FileTest.php