1 package File::Spec::Epoc;
4 use vars qw($VERSION @ISA);
8 require File::Spec::Unix;
9 @ISA = qw(File::Spec::Unix);
13 File::Spec::Epoc - methods for Epoc file specs
17 require File::Spec::Epoc; # Done internally by File::Spec if needed
21 See File::Spec::Unix for a documentation of the methods provided
22 there. This package overrides the implementation of these methods, not
25 This package is still work in progress ;-)
43 No physical check on the filesystem, but a logical cleanup of a
44 path. On UNIX eliminated successive slashes and successive "/.".
51 my ($self,$path) = @_;
53 $path =~ s|/+|/|g; # xx////xx -> xx/xx
54 $path =~ s|(/\.)+/|/|g; # xx/././xx -> xx/xx
55 $path =~ s|^(\./)+||s unless $path eq "./"; # ./xx -> xx
56 $path =~ s|^/(\.\./)+|/|s; # /../../xx -> xx
57 $path =~ s|/\Z(?!\n)|| unless $path eq "/"; # xx/ -> xx
65 See L<File::Spec> and L<File::Spec::Unix>. This package overrides the
66 implementation of these methods, not the semantics.