Lines Matching full:directory
44 Concatenate two or more directory names to form a path separated by colons
45 (":") ending with a directory. Resulting paths are B<relative> by default,
49 directory path.
57 The intended purpose of this routine is to concatenate I<directory names>.
61 I<paths> instead of directory names (strictly speaking, a string like ":a"
93 directory.
167 arguments that move up the directory tree, an invalid path going
178 of absolute paths. It takes volume, directory and file portions and
180 concatenation of I<directory names>, you are encouraged to use
181 C<catpath()> to concatenate I<volume names> and I<directory
268 Concatenate one or more directory names and a filename to form a
281 directory portions (if any), the following with regard to relative and
304 To concatenate I<volume names>, I<directory paths> and I<filenames>,
321 Returns a string representing the current directory. On Mac OS, this is ":".
341 Returns the empty string. Mac OS has no real root directory.
349 Returns the contents of $ENV{TMPDIR}, if that directory exits or the
350 current working directory otherwise. Under MacPerl, $ENV{TMPDIR} will
352 directory on your startup volume.
364 Returns a string representing the parent directory. On Mac OS, this is "::".
429 Splits a path into volume, directory, and filename portions.
434 The volume portion is always returned with a trailing ":". The directory portion
436 (to denote a directory). The file portion is always returned I<without> a leading ":".
447 my ($volume,$directory,$file);
450 ( $volume, $directory ) = $path =~ m|^((?:[^:]+:)?)(.*)|s;
459 $directory = $2;
464 $directory = ":$directory" if ( $volume && $directory ); # take care of "HD::dir"
465 if ($directory) {
467 $directory .= ':' unless (substr($directory,-1) eq ':');
468 $directory = ":$directory" unless (substr($directory,0,1) eq ':');
470 $directory = '';
474 return ($volume,$directory,$file);
484 $directories should be only the directory portion of the path on systems
488 Unlike just splitting the directories on the separator, empty directory names
490 colon to distinguish a directory path from a file path, a single trailing colon
491 will be ignored, i.e. there's no empty directory name after it.
551 $path = File::Spec->catpath($volume,$directory,$file);
553 Takes volume, directory and file portions and returns an entire path. On Mac OS,
554 $volume, $directory and $file are concatenated. A ':' is inserted if need be. You
557 beginning with a ':'. If $volume and $directory are empty, a leading ":" (if any)
565 my ($self,$volume,$directory,$file) = @_;
567 if ( (! $volume) && (! $directory) ) {
572 # We look for a volume in $volume, then in $directory, but not both
574 my ($dir_volume, $dir_dirs) = $self->splitpath($directory, 1);
580 if ($directory) {
581 $directory = $dir_dirs if $volume;
582 $directory =~ s/^://; # remove leading ':' if any
583 $path .= $directory;
604 directory path (with trailing ':') from a file path (without trailing ':').
606 If $base is not present or '', then the current working directory is used.
608 This means that it is taken to be relative to the current working directory.
620 This means that it is taken to be relative to the current working directory.
696 directory path (with trailing ':') from a file path (without trailing ':').
699 directory. If $base is relative, then it is converted to absolute form
701 current working directory.