» VL: Many Paths Lead to Rome
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

VL: Many Paths Lead to Rome

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
woei, Monday, Dec 12th 2016 Digg | Tweet | Delicious 3 comments  
elliotwoods 13/12/2016 - 09:36

lovely!

guest 15/12/2016 - 19:47
woei said
Watcher and File/FolderDialog are of course non-blocking

mm seems like they are blocking...

woei 16/12/2016 - 15:46

thx, guest
good find, was not blocking computation and gui drawing, but blocking interaction.
fixed

  • 1

anonymous user login

Shoutbox

~40min ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~6d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~7d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~20d ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/

~1mth ago

joreg: Missed the last meetup? You can rewatch it here: https://www.youtube.com/live/MdvTa58uxB0?si=Fwi-9hHoCmo794Ag

~1mth ago

theurbankind: When is the next big event, like node festival ?

~1mth ago

~1mth ago

joreg: Join us for the next vvvv meetup on Oktober 17th: https://visualprogramming.net/blog/2024/25.-vvvv-worldwide-meetup/

~1mth ago

joreg: 6 session beginner course part 2 "Deep Dive" starts January 13th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-ii/