WARNING: breaking change.
Folders in Jirafeau are originally split with 1 char.
e.g: a/3/b/c/6/f/1...
This is now set to 4 chars for better lisibility.
Older Jirafeau installation can put back to 1 char by editing this file.
This could eventually be a configuration item.
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
$p = '';
for ($i = 0; $i < strlen($s); $i++) {
$p = '';
for ($i = 0; $i < strlen($s); $i++) {
+ $p .= $s{$i};
+ if (($i + 1) % $block_size == 0) {
+ $p .= '/';
+ }
+ }
+ if (strlen($s) % $block_size != 0) {
+ $p .= '/';