[Typo3-dev] t3lib_basicFileFunctions::getTotalFileInfo

Carsten Bleicker bleicker at boros.de
Mon Jan 24 10:16:33 CET 2005


but why you negate the return of is_writable?

$info['writable'] = !@is_writable($wholePath);


---
Rechtschreibfehler sind beabsichtigt und geistiges Eigentum des 
Verfassers.
---

Michael Stucki schrieb:
> Hello Carsten,
> 
> 
>>t3lib_basicFileFunctions::getTotalFileInfo returns an array
>>wich holds the index 'writeable'. its true if file is not and false if it
>>is writeable? shouldn't it be switched, true if writeable?
>>i little thing, i know, but isnt it confusing?
> 
> 
> This function is simply calling the native PHP function is_writable() [1].
> The function works correct but there seems to be a bug on Windows.
> See [2] for more information.
> 
> Regards, michael
> 
> [1] http://ch.php.net/manual/en/function.is-writable.php
> [2] http://bugs.php.net/bug.php?id=27609




More information about the TYPO3-dev mailing list