Archi Forum

Archi Plug-ins => jArchi => Topic started by: Manj75 on October 22, 2019, 07:47:19 AM

Title: JArchi question - finding folders with white spaces or dot
Post by: Manj75 on October 22, 2019, 07:47:19 AM
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
Title: Re: JArchi question - finding folders with white spaces or dot
Post by: Phil Beauvoir on October 22, 2019, 07:53:46 AM
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
Title: Re: JArchi question - finding folders with white spaces or dot
Post by: Manj75 on October 22, 2019, 08:03:53 AM
That was quick - I'll install the latest build.

Thanks Phil
Title: Re: JArchi question - finding folders with white spaces or dot
Post by: Manj75 on October 22, 2019, 08:28:08 AM
Works a treat - thanks  :)