community.general/lib/ansible/modules/extras/files
Ryan Brown bbe8e1f53b Fix `archive` truncating archived file names based on prefix length (#3124)
When archiving multiple files, the full length of the calculated
`arcroot` would be removed from the beginning of all file names. If
there was no arcroot, the first two characters of all files would be
removed, so `file.txt` would become `le.txt`.

This patch uses the regular expressions substitution anchored to the
start of the string, so the arcroot is only removed if it is actually
present.
2016-12-08 11:34:57 -05:00
..
__init__.py
archive.py Fix `archive` truncating archived file names based on prefix length (#3124) 2016-12-08 11:34:57 -05:00
blockinfile.py added unsafe_writes to blockinfile (#2701) 2016-12-08 11:34:39 -05:00
patch.py Port patch.py to python3/python2.4 syntax (#2276) 2016-12-08 11:34:16 -05:00