| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Converts a c/c++ time_t variable to Date. | 8 * Converts a c/c++ time_t variable to Date. |
| 9 * The time we get from the archive is in local time. | 9 * The time we get from the archive is in local time. |
| 10 * @param {number} timestamp A c/c++ time_t variable. | 10 * @param {number} timestamp A c/c++ time_t variable. |
| 11 * @return {!Date} | 11 * @return {!Date} |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 var entryMetadata = this.metadata; | 340 var entryMetadata = this.metadata; |
| 341 for (var i = 0, limit = pathArray.length; i < limit; i++) { | 341 for (var i = 0, limit = pathArray.length; i < limit; i++) { |
| 342 if (!entryMetadata || | 342 if (!entryMetadata || |
| 343 !entryMetadata.isDirectory && i != limit - 1 /* Parent directory. */) | 343 !entryMetadata.isDirectory && i != limit - 1 /* Parent directory. */) |
| 344 return null; | 344 return null; |
| 345 entryMetadata = entryMetadata.entries[pathArray[i]]; | 345 entryMetadata = entryMetadata.entries[pathArray[i]]; |
| 346 } | 346 } |
| 347 | 347 |
| 348 return entryMetadata; | 348 return entryMetadata; |
| 349 }; | 349 }; |
| OLD | NEW |