Plain module

This module subclasses the Files module for plain files repository, i.e. real files stored in real directories.

See Files POD for method information.

Methods are sorted in the same order as in the super-class.

realfilename ($pathname, $releaseid)

realfilename returns the true original name of the file.

  1. $pathname

    a string containing the path relative to 'sourceroot'

  2. $releaseid

    the release (or version) in which $pathname is expected to be found

There is a substantial performance advantage in avoiding file copy into a temporary. But this is the real file. Be careful enough not to make destructive operations on it!

Note:

releaserealfilename ($filename)

releaserealfilename protects againt file erasure.

  1. $filename

    a string containing the filename

This is the companion "destructor" of realfilename. Since no file was created, just return for a no-op.

This overrides the default erasure action of the super-class.

toreal ($pathname, $releaseid)

toreal translate the pair $pathname/$releaseid into a real full OS-absolute path.

  1. $pathname

    a string containing the path relative to 'sourceroot'

  2. $releaseid

    the release (or version) in which $pathname is expected to be found

If $pathname is located in some directory to ignore, the result is undef. Otherwise, the result is the full OS path in the correct 'version' directory.

Note: