Issue 544 - preserve directory path after decompressing file
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2479 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
70a6a28c59
commit
a8cb23ca51
@ -626,8 +626,11 @@ public class ImportingUtilities {
|
||||
saveStreamToFile(uncompressedIS, file2, null);
|
||||
|
||||
JSONUtilities.safePut(fileRecord, "declaredEncoding", (String) null);
|
||||
// TODO: Why is MIME type cleared here?
|
||||
JSONUtilities.safePut(fileRecord, "declaredMimeType", (String) null);
|
||||
JSONUtilities.safePut(fileRecord, "location", getRelativePath(file2, rawDataDir));
|
||||
String location = JSONUtilities.getString(fileRecord, "location", "");
|
||||
location = location.substring(0,location.lastIndexOf('/')) + "/" + file2;
|
||||
JSONUtilities.safePut(fileRecord, "location", location);
|
||||
|
||||
return file2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user