1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2018 Olaf Wintermann. All rights reserved. |
4 * Copyright 2019 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
76 * returns true if path1 and path2 are equal or if path2 is a child of path1 |
76 * returns true if path1 and path2 are equal or if path2 is a child of path1 |
77 */ |
77 */ |
78 int util_path_isrelated(const char *path1, const char *path2); |
78 int util_path_isrelated(const char *path1, const char *path2); |
79 |
79 |
80 char* util_path_normalize(const char *path); |
80 char* util_path_normalize(const char *path); |
|
81 char* util_create_relative_path(const char *abspath, const char *base); |
81 |
82 |
82 void util_capture_header(CURL *handle, UcxMap* map); |
83 void util_capture_header(CURL *handle, UcxMap* map); |
83 |
84 |
84 char* util_path_to_url(DavSession *sn, char *path); |
85 char* util_path_to_url(DavSession *sn, char *path); |
85 char* util_parent_path(char *path); |
86 char* util_parent_path(char *path); |