VisionSystemsInc / terra

Terra - Run your algorithm anywhere on earth
MIT License
0 stars 3 forks source link

Make patch_volume prefer rw over ro #165

Open andyneff opened 1 year ago

andyneff commented 1 year ago

164 introduced a behavior to prefer the shortest remainder. This would cover

SOURCE_DIR:/src:ro
SOURCE_DIR/some_sub_dir:/processing_dir:rw

While this works with this situation, the ro/rw flag could be swapped, and we would be back to potentially getting :ro when we wanted :rw. As this is a case of intention that cannot be disambiguated, the most robust method would be to sacrifice :ro protection for :rw versatility.