Task #41768

File: add getFilenameWithoutExtensionFile()

Added by Andreas Wolf over 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-10-09
Due date:
% Done:

100%

TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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. We should add such a method and at the same time fix some shortcomings of the current solution (e.g. .tar.gz is not recognized as an extension).


Related issues

Related to TYPO3 Core - Bug #51509: Missing API interface FileInterface::getNameWithoutExtension Closed 2013-08-29

Associated revisions

Revision 39b88746 (diff)
Added by Andreas Wolf over 7 years ago

[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

Revision 46199e35 (diff)
Added by Steffen Ritter over 7 years ago

[BUGFIX] FollowUp Tests to #41768

The UnitTest has not been completely adapted.
Fix the tests.

Change-Id: I00e14a4c9d94a8549eb889bb1def8050d4d8736e
Releases: 6.0
Fixes: #41768
Reviewed-on: http://review.typo3.org/15487
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

History

#1 Updated by Gerrit Code Review over 7 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15427

#2 Updated by Gerrit Code Review over 7 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15427

#3 Updated by Gerrit Code Review over 7 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15427

#4 Updated by Anonymous over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#5 Updated by Gerrit Code Review over 7 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15487

#6 Updated by Steffen Ritter over 7 years ago

  • Status changed from Under Review to Resolved

#7 Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF