JArchi question - finding folders with white spaces or dot

Started by Manj75, October 22, 2019, 07:47:19 AM

Previous topic - Next topic

Manj75

Hi,

I am new to JArchi and in early days of learning, but I wanted to create a script that creates a folder structure under another existing folder.   I have been looking at the example scripts provided, and the most relevant being the Folder Management script.

I can find the first instance of the folder name Archive and it works as expected:

console.log("Folder found: ", model.find("folder.Archive").first()

How, can I specify a folder name that contains white space or a dot e.g.

Project Requests
org.department.application.logical

In both cases if I specify:

console.log("Folder found: ", model.find("folder.Project Request").first()
console.log("Folder found: ", model.find("folder.org.department.application.logical").first()


they return (null)

Thanks

Phil Beauvoir

October 22, 2019, 07:53:46 AM #1 Last Edit: October 22, 2019, 07:56:44 AM by Phil Beauvoir
Hi Manjit,

this is fixed in the latest version of jArchi (0.6.0). If you use the source code, the fix is in master, but I sent you a new build to your email address.

Phil
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Manj75

That was quick - I'll install the latest build.

Thanks Phil