File: vfs-for-files.mkdn

package info (click to toggle)
libdist-zilla-perl 6.032-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,928 kB
  • sloc: perl: 7,275; makefile: 4; sh: 1
file content (10 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10

# VIRTUAL FILESYSTEM TO REPLACE "FILES" ARRAY

Right now, files are simple objects stored in an array.  This is nice and
simple, but also a bit of a mess.  It allows duplicate filenames forces us to
use regex to find files in a given directory, and so on.  Instead, we should
use Path::Resolver (or something) to build a simple virtual filesystem.

Then we could have filename changes detect conflicts immediately, we could have
$file->replace_with( $other_file ), and other nice improvements.