| | | |
Offset 85, 17 lines modified | Offset 85, 17 lines modified |
85 | ····················int·n2·=·0; | 85 | ····················int·n2·=·0; |
86 | ····················while·(true)·{ | 86 | ····················while·(true)·{ |
87 | ························final·int·n3·=·1; | 87 | ························final·int·n3·=·1; |
88 | ························if·(n2·>=·length)·{ | 88 | ························if·(n2·>=·length)·{ |
89 | ····························return·n3·!=·0; | 89 | ····························return·n3·!=·0; |
90 | ························} | 90 | ························} |
91 | ························final·LsItem·lsItem·=·this.list[n2]; | 91 | ························final·LsItem·lsItem·=·this.list[n2]; |
92 | ························Label_0686:·{ | 92 | ························Label_0679:·{ |
93 | ····························if·(lsItem·==·null)·{ | 93 | ····························if·(lsItem·==·null)·{ |
94 | ································break·Label_0686; | 94 | ································break·Label_0679; |
95 | ····························} | 95 | ····························} |
96 | ····························final·String·name·=·lsItem.getName(); | 96 | ····························final·String·name·=·lsItem.getName(); |
97 | ····························try·{ | 97 | ····························try·{ |
98 | ································try·{ | 98 | ································try·{ |
99 | ····································final·StringBuilder·sb·=·new·StringBuilder(); | 99 | ····································final·StringBuilder·sb·=·new·StringBuilder(); |
100 | ····································sb.append(this.src_base_path); | 100 | ····································sb.append(this.src_base_path); |
101 | ····································final·StringBuilder·sb2·=·sb; | 101 | ····································final·StringBuilder·sb2·=·sb; |
Offset 137, 80 lines modified | Offset 137, 73 lines modified |
137 | ········································································try·{ | 137 | ········································································try·{ |
138 | ············································································final·String·dest_folder2·=·this.dest_folder; | 138 | ············································································final·String·dest_folder2·=·this.dest_folder; |
139 | ············································································try·{ | 139 | ············································································try·{ |
140 | ················································································final·String·absolutePath·=·new·File(dest_folder2,·lsItem.getName()).getAbsolutePath(); | 140 | ················································································final·String·absolutePath·=·new·File(dest_folder2,·lsItem.getName()).getAbsolutePath(); |
141 | ················································································try·{ | 141 | ················································································try·{ |
142 | ····················································································final·String·prepFileName2·=·ExecEngine.prepFileName(absolutePath); | 142 | ····················································································final·String·prepFileName2·=·ExecEngine.prepFileName(absolutePath); |
143 | ····················································································try·{ | 143 | ····················································································try·{ |
| 144 | ························································································final·String·uid·=·this.uid; |
144 | ························································································Label_0359:·{ | 145 | ························································································Label_0375:·{ |
145 | ····························································································if·(this.uid·==·null)·{ | 146 | ····························································································if·(uid·!=·null)·{ |
| 147 | ································································································final·Permissions·permissions·=·new·Permissions(uid,·uid,·"-rw-rw----"); |
146 | ································································································break·Label_0359; | 148 | ································································································break·Label_0375; |
147 | ····························································································} | 149 | ····························································································} |
148 | ····························································································Permissions·permissions·=·new(com.ghostsq.commander.utils.Permissions.class); | |
149 | ····························································································try·{ | 150 | ····························································································try·{ |
150 | ································································································final·String·uid·=·this.uid; | 151 | ································································································final·Permissions·permissions·=·new·Permissions(lsItem.getAttr()); |
151 | ································································································new·Permissions(uid,·uid,·"-rw-rw----"); | |
152 | ································································································Label_0382:·{ | 152 | ································································································try·{ |
| 153 | ····································································································final·StringBuilder·sb8·=·new·StringBuilder(); |
153 | ····································································································break·Label_0382; | 154 | ····································································································sb8.append("chown·"); |
| 155 | ····································································································final·StringBuilder·generateChownString·=·permissions.generateChownString(); |
| 156 | ····································································································generateChownString.append(s2); |
| 157 | ····································································································final·StringBuilder·sb9·=·generateChownString; |
154 | ····································································································try·{ | 158 | ····································································································try·{ |
| 159 | ········································································································sb9.append(prepFileName2); |
| 160 | ········································································································sb8.append(generateChownString.toString()); |
155 | ········································································································permissions·=·new·Permissions(lsItem.getAttr()); | 161 | ········································································································final·String·string2·=·sb8.toString(); |
156 | ········································································································try·{ | 162 | ········································································································try·{ |
157 | ············································································································final·StringBuilder·sb8·=·new·StringBuilder(); | 163 | ············································································································this.outCmd(this.uid·!=·null,·string2,·outputStreamWriter); |
158 | ············································································································sb8.append("chown·"); | |
159 | ············································································································final·StringBuilder·generateChownString·=·permissions.generateChownString(); | |
160 | ············································································································generateChownString.append(s2); | |
161 | ············································································································final·StringBuilder·sb9·=·generateChownString; | |
162 | ············································································································try·{ | 164 | ············································································································try·{ |
| 165 | ················································································································final·StringBuilder·sb10·=·new·StringBuilder(); |
163 | ················································································································sb9.append(prepFileName2); | 166 | ················································································································sb10.append("chmod·"); |
| 167 | ················································································································final·StringBuilder·generateChmodString·=·permissions.generateChmodString(); |
164 | ················································································································sb8.append(generateChownString.toString()); | 168 | ················································································································generateChmodString.append(s2); |
165 | ················································································································final·String·string2·=·sb8.toString(); | 169 | ················································································································final·StringBuilder·sb11·=·generateChmodString; |
166 | ················································································································try·{ | 170 | ················································································································try·{ |
| 171 | ····················································································································sb11.append(prepFileName2); |
| 172 | ····················································································································sb10.append(generateChmodString.toString()); |
167 | ····················································································································this.outCmd(this.uid·!=·null,·string2,·outputStreamWriter); | 173 | ····················································································································this.outCmd((boolean)(n3·!=·0),·sb10.toString(),·outputStreamWriter); |
168 | ····················································································································try·{ | 174 | ····················································································································try·{ |
169 | ························································································································final·StringBuilder·sb10·=·new·StringBuilder(); | |
170 | ························································································································sb10.append("chmod·"); | |
171 | ························································································································final·StringBuilder·generateChmodString·=·permissions.generateChmodString(); | |
172 | ························································································································generateChmodString.append(s2); | |
173 | ························································································································final·StringBuilder·sb11·=·generateChmodString; | |
174 | ························································································································try·{ | |
175 | ····························································································································sb11.append(prepFileName2); | |
176 | ····························································································································sb10.append(generateChmodString.toString()); | |
177 | ····························································································································this.outCmd((boolean)(n3·!=·0),·sb10.toString(),·outputStreamWriter); | |
178 | ····························································································································try·{ | |
179 | ································································································································this.procError(bufferedReader2); | 175 | ························································································································this.procError(bufferedReader2); |
180 | ····························································································································} | |
181 | ····························································································································catch·(Exception·ex)·{ | |
182 | ································································································································Log.w(this.TAG,·"chmod/chown·failed",·(Throwable)ex); | |
183 | ····························································································································} | |
184 | ························································································································} | 176 | ····················································································································} |
185 | ························································································································catch·(Exception·ex3)·{} | 177 | ····················································································································catch·(Exception·ex)·{ |
| 178 | ························································································································Log.w(this.TAG,·"chmod/chown·failed",·(Throwable)ex); |
186 | ····················································································································} | 179 | ····················································································································} |
187 | ····················································································································catch·(Exception·ex4)·{} | |
188 | ················································································································} | 180 | ················································································································} |
189 | ················································································································catch·(Exception·ex5)·{} | 181 | ················································································································catch·(Exception·ex3)·{} |
190 | ············································································································} | 182 | ············································································································} |
191 | ············································································································catch·(Exception·ex6)·{} | 183 | ············································································································catch·(Exception·ex4)·{} |
192 | ········································································································} | 184 | ········································································································} |
193 | ········································································································catch·(Exception·ex7)·{} | 185 | ········································································································catch·(Exception·ex5)·{} |
194 | ····································································································} | 186 | ····································································································} |
195 | ····································································································catch·(Exception·ex8)·{} | 187 | ····································································································catch·(Exception·ex6)·{} |
196 | ································································································} | 188 | ································································································} |
| 189 | ································································································catch·(Exception·ex7)·{} |
197 | ····························································································} | 190 | ····························································································} |
198 | ····························································································catch·(Exception·ex9)·{} | 191 | ····························································································catch·(Exception·ex8)·{} |
199 | ························································································} | 192 | ························································································} |
200 | ····················································································} | 193 | ····················································································} |
201 | ····················································································catch·(Exception·ex10)·{} | 194 | ····················································································catch·(Exception·ex9)·{} |
202 | ················································································} | 195 | ················································································} |
203 | ················································································catch·(Exception·ex11)·{} | 196 | ················································································catch·(Exception·ex10)·{} |
204 | ············································································} | 197 | ············································································} |
205 | ············································································catch·(Exception·ex12)·{} | 198 | ············································································catch·(Exception·ex11)·{} |
206 | ········································································} | 199 | ········································································} |
207 | ········································································catch·(Exception·ex13)·{} | 200 | ········································································catch·(Exception·ex12)·{} |
208 | ····································································} | 201 | ····································································} |
209 | ····································································catch·(Exception·ex14)·{} | 202 | ····································································catch·(Exception·ex13)·{} |
210 | ····································································try·{ | 203 | ····································································try·{ |
211 | ········································································final·StringBuilder·sb13; | 204 | ········································································final·StringBuilder·sb13; |
212 | ········································································final·StringBuilder·sb12·=·sb13·=·new·StringBuilder(); | 205 | ········································································final·StringBuilder·sb12·=·sb13·=·new·StringBuilder(); |
213 | ········································································try·{ | 206 | ········································································try·{ |
214 | ············································································sb13.append(s); | 207 | ············································································sb13.append(s); |
215 | ············································································final·StringBuilder·sb14·=·sb12; | 208 | ············································································final·StringBuilder·sb14·=·sb12; |
216 | ············································································try·{ | 209 | ············································································try·{ |
Offset 227, 47 lines modified | Offset 220, 47 lines modified |
227 | ····················································································continue; | 220 | ····················································································continue; |
228 | ················································································} | 221 | ················································································} |
229 | ················································································catch·(Exception·ex2)·{ | 222 | ················································································catch·(Exception·ex2)·{ |
230 | ····················································································this.error(ex2.getMessage()); | 223 | ····················································································this.error(ex2.getMessage()); |
231 | ····················································································return·false; | 224 | ····················································································return·false; |
232 | ················································································} | 225 | ················································································} |
233 | ············································································} | 226 | ············································································} |
234 | ············································································catch·(Exception·ex15)·{} | 227 | ············································································catch·(Exception·ex14)·{} |
235 | ········································································} | 228 | ········································································} |
236 | ········································································catch·(Exception·ex16)·{} | 229 | ········································································catch·(Exception·ex15)·{} |
237 | ····································································} | 230 | ····································································} |
238 | ····································································catch·(Exception·ex17)·{} | 231 | ····································································catch·(Exception·ex16)·{} |
239 | ································································} | 232 | ································································} |
240 | ································································catch·(Exception·ex18)·{} | 233 | ································································catch·(Exception·ex17)·{} |
Max diff block lines reached; 3881/21868 bytes (17.75%) of diff not shown.
|