diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 4 | ||||
-rw-r--r-- | src/ls.h | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -42,6 +42,10 @@ void printRemoteUrlHandlers(struct client *client) } } +bool uri_has_scheme(const char *uri) +{ + return strstr(uri, "://") != NULL; +} bool isRemoteUrl(const char *url) { @@ -28,6 +28,12 @@ struct client; const char *getSuffix(const char *utf8file); +/** + * Checks whether the specified URI has a schema in the form + * "scheme://". + */ +bool uri_has_scheme(const char *uri); + bool isRemoteUrl(const char *url); const struct decoder_plugin * |