Skip to content

Commit a6c3332

Browse files
authored
Don't reject paths containing a colon or backslash (#6175)
1 parent 777665d commit a6c3332

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/files.gi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ InstallMethod( Directory,
4545
[ IsString ],
4646
function( str )
4747
str := UserHomeExpand(str);
48-
#
49-
# ':' or '\\' probably are untranslated MS-DOS or MacOS path
50-
# separators, but ':' in position 2 may be OK
51-
#
52-
if '\\' in str or (':' in str and str[2] <> ':') then
53-
Error( "<str> must not contain '\\' or ':'" );
54-
fi;
5548
if Length( str ) > 0 and Last(str) = '/' then
5649
str := Immutable(str);
5750
else

0 commit comments

Comments
 (0)