Module z_media_archive

Media archiving utilities.

Copyright 2009 Marc Worrell Date: 2009-04-10

Authors: Marc Worrell (marc@worrell.nl).

Description

Media archiving utilities. Manages the files/archive directory of sites.

Function Index

abspath/2Return the absolute path name of a relative file in the archive.
archive_copy/2Always archive a copy of a file in the archive directory.
archive_copy/3
archive_copy_opt/2Optionally archive a copy of a file in the archive directory (when it is not archived yet).
archive_copy_opt/3
archive_delete/2Delete a filename in the archive.
archive_file/2Move a file to the archive directory (when it is not archived yet).
archive_file/3Move a file to the archive directory (when it is not archived yet).
archive_filename/2
ensure_relative/2Ensure that the filename is relative to the archive.
ensure_relative/3
is_archived/2Check if the file is archived (ie.
rel_archive/2Remove the path to the archive directory, return a filename relative to the archive directory.
safe_filename/1

Function Details

abspath/2

abspath(File, Context) -> any()

Return the absolute path name of a relative file in the archive

archive_copy/2

archive_copy(Filename, Context) -> ArchivedFilename

Always archive a copy of a file in the archive directory

archive_copy/3

archive_copy(Filename, NewBasename, Context) -> any()

archive_copy_opt/2

archive_copy_opt(Filename, Context) -> ArchivedFilename

Optionally archive a copy of a file in the archive directory (when it is not archived yet)

archive_copy_opt/3

archive_copy_opt(Filename, NewBasename, Context) -> any()

archive_delete/2

archive_delete(Filename, Context) -> any()

Delete a filename in the archive

archive_file/2

archive_file(Filename, Context) -> ArchivedFilename

Move a file to the archive directory (when it is not archived yet)

archive_file/3

archive_file(Filename, NewBasename, Context) -> ArchivedFilename

Move a file to the archive directory (when it is not archived yet)

archive_filename/2

archive_filename(Filename, Context) -> any()

ensure_relative/2

ensure_relative(File, Context) -> any()

Ensure that the filename is relative to the archive. When needed move the file to the archive. Return the relative path.

ensure_relative/3

ensure_relative(File, NewBasenameIfMoved, Context) -> any()

is_archived/2

is_archived(Filename, Context) -> any()

Check if the file is archived (ie. in the archive directory)

rel_archive/2

rel_archive(Filename, Context) -> any()

Remove the path to the archive directory, return a filename relative to the archive directory

safe_filename/1

safe_filename(B) -> any()


Generated by EDoc, Oct 1 2014, 21:06:45.