VL: Many Paths Lead to Rome

December 12, 2016 posted by: woei Guest Post

after let-me-present-to-you-file-io, here comes another thou shall not be afraid known nodes

handling files and folders as usual

the last post demoed reading and writing files… but the shown iobox with the filename inside actually gracefully skipped the part on how to get to your file. so up above you see the set - well known to any vvvv user who - which takes care of handling directories, files, folders, paths,

guess, no need to say much about those. Watcher and File/FolderDialog are of course non-blocking and Copier and Mover do their work asynchronously in the background.

so what’s the Path thing?

VL extends the behaviour of vvvv string ioboxes a bit. in vvvv you could open up a folder or file selection from the iobox directly. you can again do that, of course. however, the system now knows about Paths, which is more than just a simple string. sounds a bit academical, right…

path makes this possible

the nice thing about this Path Type is that everything feels more like file handling in the explorer

  • most nodes now work on both file and directory out of the box: Modified, Exists, Get/SetAttributes…
  • Size gives you either the one of the file or, in case of a folder, of everything that’s inside
  • Copy, Move, Rename and Delete do their job on files as well as folders: eg. no need to move every single file inside a folder to a new location anymore (juggling the strings to preserve the subfolder structure…)
  • traversing file/folder hierarchies is now a piece of cake (think asset management!): you have parent/children relation - not a flat spread of strings anymore


Comments are no longer accepted for this post.

13.12.2016 - 08:36
15.12.2016 - 18:47

mm seems like they are blocking…

16.12.2016 - 14:46
thx, guest good find, was not blocking computation and gui drawing, but blocking interaction. fixed



vvvv - Dießl & Gregor GbR
Oranienstrasse 10
10997 Berlin/Germany
VAT: DE275566955


Follow us


Sign up for our Newsletter

Your subscription could not be saved. Please try again.
Your subscription has been successful.