package File
::Spec
::Epoc
;
require File::Spec::Unix;
@ISA = qw(File::Spec::Unix);
File::Spec::Epoc - methods for Epoc file specs
require File::Spec::Epoc; # Done internally by File::Spec if needed
See File::Spec::Unix for a documentation of the methods provided
there. This package overrides the implementation of these methods, not
This package is still work in progress ;-)
No physical check on the filesystem, but a logical cleanup of a
path. On UNIX eliminated successive slashes and successive "/.".
$path =~ s
|/+|/|g
; # xx////xx -> xx/xx
$path =~ s
|(/\.)+/|/|g; # xx/././xx -> xx
/xx
$path =~ s
|^(\
./)+||s unless $path eq "./"; # ./xx -> xx
$path =~ s|^/(\.\./)+|/|s; # /../../xx -> xx
$path =~ s|/\Z(?!\n)|| unless $path eq "/"; # xx/ -> xx