Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Won't Fix
-
None
-
None
-
Low
Description
ruslan usifov reports on -user:
i have problem with StreamInitiateVerbHandler, the problem in PendingFile.getTargetFile, namely difference in slashes on win and unix, so i change PendingFile.java like this:
public PendingFile(String targetFile, long expectedBytes, String table)
{ targetFile_ = targetFile.replaceAll("(?:\\\\|/)+", "/"); expectedBytes_ = expectedBytes; table_ = table; ptr_ = 0; }public void setTargetFile(String file)
{ targetFile_ = file.replaceAll("(?:\\\\|/)+", "/");; }What we really want though is something that uses the File apis to be os-independent.