Roxen.git/
server/
modules/
filesystems/
filesystem.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2016-03-21
2016-03-21 10:05:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>
3d563b635ccabc33c67c8561d8fa882e846df173 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
57001636821aa150991b89014f4ea5dd1e8dc607
Filesystem: Decode the file names returned by get_dir().
Fixes some of [bug
7659 (#7659)
].
569:
dir = Array.filter(dir, dir_filter_function, id);
+
if (path_encoding != "iso-8859-1") {
+
dir = map(dir, decode_path);
+
}
+
if (!id->misc->internal_get) foreach (internal_files, string globstr) dir -= glob (globstr, dir);
582:
SIMPLE_TRACE_ENTER(this, "Deleting all files in directory %O...", real_dir); foreach(get_dir(real_dir) || ({}), string fname) { string real_fname = combine_path(real_dir, fname);
-
string virt_fname = virt_dir + "/" + fname;
+
string virt_fname = virt_dir + "/" +
decode_path(
fname
)
;
Stat stat = file_stat(real_fname); if (!stat) {