Changes between Initial Version and Version 1 of Ticket #2329, comment 39


Ignore:
Timestamp:
2015-02-20T02:52:48Z (10 years ago)
Author:
zooko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2329, comment 39

    initial v1  
    99First of all, the question of whether you want the bag vs. the contents of the bag is determined by whether the directory-like source has a name (the `F` column) vs. doesn't have a name (the `G` and `H` columns). That's a nice simple rule, and according to that, the result in the "comment:27 -r" row has to be `local/missing/dir/file` instead of `local/missing/file`, because the latter would be just the contents of the bag (`file`) instead of the bag (`dir/file`).
    1010
    11 So looking at [comment:35 the table], the cells of column `F` need to result in /dir/file` (if they aren't instead an error) and the cells of columns `G` and `H` need to result in `file` (if they aren't instead an error).
     11So looking at [comment:35 the table], the cells of column `F` need to result in `/dir/file` (if they aren't instead an error) and the cells of columns `G` and `H` need to result in `file` (if they aren't instead an error).
    1212
    1313Second, the comment:27 algorithm behaves the same way whether the target exists or doesn't exist at the beginning of the algorithm. This is (in my intuition) a nice simple rule, and it also means there isn't a race condition in which the behavior is unpredictable because the existence of the target is unpredictable.