[Typo3-dev] t3lib_basicFileFunctions::getTotalFileInfo

Michael Stucki michael at typo3.org
Mon Jan 24 13:19:29 CET 2005


Hello Carsten,

> but why you negate the return of is_writable?
> 
> $info['writable'] = !@is_writable($wholePath);

Sorry, must have been too early, I've overlooked that!

In the past, these permissions were read from the $info['perms'] value, and
when we switched to the native function it should act the same way as
before, so that's it:

--- cut "old version" ---
$info['perms'] = @fileperms($wholePath);
$info['writeable'] = ($info['perms']&2 || ($theuser==$info['owner'] && $info['perms']&128));
--- cut "old version" ---

It should not be changed as long as we don't know where it's used this way.

- michael
-- 
Want support? Please read the list rules first: http://typo3.org/1438.0.html




More information about the TYPO3-dev mailing list