Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
I wanted to use the
o.o.loaders.TemplateWizard
to create some files on config FS. I have vound that when the Wizard completes, the resulting FileObject is placed correctly, but comes from the underlying physical filesystem. Then checks like the following fail:
wizard.setTargetFolder(DataFolder.findFolder(FileUtil.getConfigFile("scripts")); Set<DataObject> result = wizard.instantiate(); FileObject fo = result.iterator().next().getPrimaryFile(); FileObject cfRoot = FileUtil.getConfigRoot(); if (FileUtil.isParentOf(cfRoot, fo)) { // never reached }
Attachments
Issue Links
- links to