LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
RayFarmer

Strip Path with recursive option

Status: Declined
The use case for this idea is already fulfilled by the use of path notation (e.g. ..\..\) with the Build Path function. Duplicating this functionality on Strip Path would provide minimal additional benefit.

It would be nice if the Strip Path function had a recursive option rather than having to string Strip Paths together or use an external loop.

 

 eg change from this:

strip_path.png

 

 

to this:

 

recursive_strip.png

 

 

regards

Ray

Regards
Ray Farmer
Download All
15 Comments
AristosQueue (NI)
NI Employee (retired)

Save for Previous always tries to do something like that when we introduce new functionality to an existing node. Yes, this would be easy to replace with a subVI when saving backwards. That should not be a concern when judging whether this is a good idea or not... and I think it is a good idea.

beuvink
Member

I do not feel the need that much for this option. If the file structure is a constant, you also need to go up sometimes. Going up&down in a folder structure can be done already like this:

 

untitled.PNG

 

In your example the string would be "..\..\..\.."

 

In specfic cases where you need to move more dynamically you can do some other stuff quite easily. An example is the format into string (to select folders) or just a simple for loop:

 

untitled.PNG

 

---

25+ years long fan of LabVIEW. Be aware that NI changed their business model with great impact .
GerdW
Knight of NI

While we are discussing that function: could you also redesign the connector pane to something more style guide compliant?

Let's remember: references/file paths go to the upper left/right connector of the 4224-pattern...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Darren
Proven Zealot

I just edited the idea name and description to use the word "recursive" instead of the original "recusive".  Hopefully this will help with future searches.

G-Money
NI Employee (retired)
Status changed to: Declined
The use case for this idea is already fulfilled by the use of path notation (e.g. ..\..\) with the Build Path function. Duplicating this functionality on Strip Path would provide minimal additional benefit.