(op_id, error)
| 19 | } |
| 20 | |
| 21 | function ply_storage_finish_err(op_id, error) { |
| 22 | var message = "Storage operation failed"; |
| 23 | if (error !== undefined && error !== null) { |
| 24 | if (error.message !== undefined && error.message !== null) { |
| 25 | message = String(error.message); |
| 26 | } else { |
| 27 | message = String(error); |
| 28 | } |
| 29 | } |
| 30 | ply_storage_pending[op_id] = { |
| 31 | status: 0, |
| 32 | error: message |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | function ply_storage_split_path(path) { |
| 37 | var parts = path.split('/').filter(function (part) { |
no outgoing calls
no test coverage detected