|
|
|
|
|
|
|
|
// Ensures that the directory hierarchy for a document in a POI fileystem is in place. |
|
|
// Ensures that the directory hierarchy for a document in a POI fileystem is in place. |
|
|
// Get the root directory. It does not have to be created since it always exists in a POIFS. |
|
|
// Get the root directory. It does not have to be created since it always exists in a POIFS. |
|
|
DirectoryEntry de = poiFs.getRoot(); |
|
|
DirectoryEntry de = poiFs.getRoot(); |
|
|
if ("/".equals(path.toString())) { |
|
|
|
|
|
|
|
|
if (File.separator.equals(path.toString())) { |
|
|
de.setStorageClsid(event.getStorageClassId()); |
|
|
de.setStorageClsid(event.getStorageClassId()); |
|
|
} |
|
|
} |
|
|
|
|
|
|