[INTERPRETER]
* NEW: When searching a relative path inside an archive, ignore trailing slashes: "foo/bar/" and "/foo/bar//" are now the same as "foo/bar". git-svn-id: svn://localhost/gambas/trunk@7837 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
491f4d0e2f
commit
34df9f3d4c
@ -296,6 +296,9 @@ bool ARCH_find(ARCH *arch, const char *path, int len_path, ARCH_FIND *find)
|
||||
if (len_path <= 0)
|
||||
len_path = strlen(path);
|
||||
|
||||
while (len_path >= 2 && path[len_path - 1] == '/')
|
||||
len_path--;
|
||||
|
||||
if (get_absolute_path(path, len_path, tpath, &len_tpath))
|
||||
return TRUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user