fuel/core — Issue #664: File class chmod permission problems
Author: huglester
Created: 2011-11-12 17:06:08+00:00
State: open

Hello,

Today I have faced chmod problems when using File class.

Seems that it get's incorrect chmod values from config (file.php) file.
I could not track down the problem, but to reproduce you can:

Open File class, _init() method, and add:
```
var_dump(\Config::get('file'));
exit;
```
right after after the:
\Config::load('file', true);

and you will get these chmod values, which are unknown where to come from...
```
[chmod] => Array
(
[files] => 438
[folders] => 511
)
```

But if you replace the load params with:
\Config::load('file', true, true);

you will get correct values:
```
[chmod] => Array
(
[files] => 0666
[folders] => 0777
)
```

Anyone has an idea what can be causing this?

Thank you