directories

Package: WA2L/SimpleBackup 1.0.69
Section: Library Commands (3)
Updated: 18 June 2026
Index Return to Main Contents

 

NAME

directories - filter to expand filelist with overlying directories

 

SYNOPSIS

WA2LSimpleBackup/lib/[shell/]directories

 

AVAILABILITY

WA2L/SimpleBackup

 

DESCRIPTION

expand a file list data stream received via stdin with the overlying directories and print the result to stdout.

This can be used to ensure when compressing or copying data that the directory timestamps are set correctly.

Slashed (/) as path separator in provided file list are translated to backslashes (\).

Suppose the following command is issued:

  uxfind data\source\myApp -name *.java -print ^
    | zip -@ archive.zip

This will compress all *.java files in all underlying directories from data\source\myApp to the archive.zip archive, but when uncompressing all directories will have the timestamp of the unpacking and not the timestamps of the original directories. All *.java files will have the correct timestamps.

When using the directories command with compress:

  uxfind data\source\myApp -name *.java -print ^
    | directories | zip -@ h:\tmp\archive.zip

and to uncompress:

  cd h:\restore
  7zip x h:\tmp\archive.zip

all timestamps will be correct on unpacking because the directories are also added to the archive.zip file.

 

OPTIONS

-

 

ENVIRONMENT

-

 

EXIT STATUS

0
always.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

simplebackupintro(1), 7z(1), cpio(1), gzip(1), lsw(1), tar(1), uxfind(1), unzip(1), zip(1)

 

NOTES

-

 

BUGS

resist using unzip to uncompress a *.zip file when you want to have always the directory timestamps as saved in the archive.

 

AUTHOR

directories was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2010 Christian Walther

This is free software; see WA2LSimpleBackup/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 21:31:43 GMT, June 26, 2026