Skip to content

Commit a360f97

Browse files
author
Niall Pemberton
committed
IO-209 Fix test failing on Unix - freeSpaceWindows() should always normalize files to Windows (even for the MockFileSystemUtils on Unix)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1002917 13f79535-47bb-0310-9956-ffa450edef68
1 parent 317841f commit a360f97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java/org/apache/commons/io/FileSystemUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ long freeSpaceOS(String path, int os, boolean kb, long timeout) throws IOExcepti
290290
* @throws IOException if an error occurs
291291
*/
292292
long freeSpaceWindows(String path, long timeout) throws IOException {
293-
path = FilenameUtils.normalize(path);
293+
path = FilenameUtils.normalize(path, false);
294294
if (path.length() > 0 && path.charAt(0) != '"') {
295295
path = "\"" + path + "\"";
296296
}

0 commit comments

Comments
 (0)