How to get a file folder in LiveTemplate groovy script?

I'm using a groovy script for a LiveTemplate variable and I'd like to output value depending on the folder of the currently edited file. According to the docs, I can only use fileName() and fileNameWithoutExtension() values.

How do I get an enclosing folder (or a full path) of the current file?

0
2 comments

Hello Nick,

Feel free to create feature request on YouTrack: https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.