1
0
Fork 0
flightgear/scripts/python/TerraSync/tests
Florent Rougon 692ab6835f terrasync.py: more thorough checking of .dirindex contents
- only accept ASCII-encoded .dirindex files (this is guaranteed to work
  fine "everywhere");

- reject .dirindex files with a 'path' entry that contains a backslash
  or starts with a slash;

- reject .dirindex files with a 'path' entry that contains a '..'
  component;

- reject .dirindex files with an 'f', 'd' or 't' entry whose name field
  contains a slash or a backslash;

- reject .dirindex files with an 'f', 'd' or 't' entry whose name field
  is '..';

- add comment lines (starting with '#') in the sample good .dirindex
  file used by unit tests.
2020-10-03 14:18:29 +02:00
..
data/dirindex terrasync.py: more thorough checking of .dirindex contents 2020-10-03 14:18:29 +02:00
__init__.py terrasync.py: add and use a VirtualPath class; also add MutableVirtualPath 2018-02-07 11:38:41 +01:00
test_dirindex.py terrasync.py: more thorough checking of .dirindex contents 2020-10-03 14:18:29 +02:00
test_virtual_path.py terrasync.py: test_virtual_path.py can't be run directly 2020-10-02 16:38:08 +02:00