(path)
| 55 | } |
| 56 | |
| 57 | function getTypeAdress(path) |
| 58 | { |
| 59 | path = posixPath(path); |
| 60 | |
| 61 | if(/^(?:smb|s3)\:\//.test(path)) |
| 62 | return app.extract(/^((?:smb|s3)\:\/\/[^\/\\]+\/[^\/\\]+)/, path, 1); |
| 63 | else if(/^(?:ftps?|sftp|ssh|scp|webdavs?|opdsfs?)\:\//.test(path)) |
| 64 | return app.extract(/^((?:ftps?|sftp|ssh|scp|webdavs?|opdsfs?)\:\/\/[^\/\\]+)/, path, 1); |
| 65 | |
| 66 | return ''; |
| 67 | } |
| 68 | |
| 69 | function posixPath(path) |
| 70 | { |