@@ 98-102 (lines=5) @@ | ||
95 | $spath = $file->getPath(); |
|
96 | } |
|
97 | ||
98 | if ( $newLayout === 'sha1' ) { |
|
99 | $dpath = "{$origBase}/{$sha1[0]}/{$sha1[1]}/{$sha1[2]}/{$sha1}"; |
|
100 | } else { |
|
101 | $dpath = $file->getPath(); |
|
102 | } |
|
103 | ||
104 | $status = $be->prepare( [ |
|
105 | 'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] ); |
|
@@ 131-135 (lines=5) @@ | ||
128 | $spath = $ofile->getPath(); |
|
129 | } |
|
130 | ||
131 | if ( $newLayout === 'sha1' ) { |
|
132 | $dpath = "{$origBase}/{$sha1[0]}/{$sha1[1]}/{$sha1[2]}/{$sha1}"; |
|
133 | } else { |
|
134 | $dpath = $ofile->getPath(); |
|
135 | } |
|
136 | ||
137 | $status = $be->prepare( [ |
|
138 | 'dir' => dirname( $dpath ), 'bypassReadOnly' => 1 ] ); |