<p dir="ltr">Hi Franz,</p>
<p dir="ltr">emitPostFileRenameSignalsignal isn't broken. Indeed a $originalFile param makes sense (maybe you could provide a patch for that) but it is also useable without. For ext:fal_secure_download I register all moved files in a local array in the pre signal so I can do my magic in the post signal.</p>
<p dir="ltr">For your root folder issue. For local storages the root folder is always /. I guess your looking for the path stored in the configuration of a storage.</p>
<p dir="ltr">The name of getRootLevelFolder() is indeed a little bit misleading. But as all ResourceStorage methods respect the user privileges and settings it makes sense that getRootLevelFolder() returns a folder the current user has access to.</p>
<p dir="ltr">Gr. Frans</p>
<blockquote><p dir="ltr">LOL, WTF? For renamed files you don't even get the old filename but just<br>
the UID of the resource as $cmdArr['data'], which ofc already is renamed<br>
if you grab it from the Storage. So there is no way ever to get the old<br>
name? You're kidding me. This hook is utterly broken.<br>
</p>
</blockquote>
<p dir="ltr"><br>
the emitPostFileRenameSignalsignal is also broken because it also doesn't know about the old identifier/filename and the identifier of the fileobject itself already got updated to the new identifier by the ResourceStorage->renameFile function.</p>
<p dir="ltr">--<br>
kind regards,<br>
Franz Koch<br>
_______________________________________________<br>
Before posting to this list, please have a look to the posting rules<br>
on the following websites:</p>
<p dir="ltr"><a href="http://typo3.org/teams/core/core-mailinglist-rules/">http://typo3.org/teams/core/core-mailinglist-rules/</a><br>
<a href="http://typo3.org/development/bug-fixing/diff-and-patch/">http://typo3.org/development/bug-fixing/diff-and-patch/</a><br>
_______________________________________________<br>
TYPO3-team-core mailing list<br>
<a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a><br>
<a href="http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core">http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core</a><br>
</p>