Guest User

Untitled

a guest
May 9th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. each object contains information for copying and renaming a set of files. The attributes determine the source directory, as well as the number of destinations and their names.
  2.  
  3. The source and destination paths can be split into two parts, 'upper' and 'lower'.
  4.  
  5. for the sources:
  6. there are two possible 'upper' paths and two possible 'lower' paths, resulting in 4 possible source paths:
  7.  
  8. upper1 + lower1
  9. upper1 + lower2
  10.  
  11. upper2 + lower1
  12. upper2 + lower2
  13.  
  14. for the destinations:
  15. there are anywhere from 1 to 10 poaaible 'upper' paths per object, based on the pack value, and two possible 'lower' paths, which are the same as the source 'lower' paths except for one change that is constant across all destinations.
  16.  
  17. the 'upper' destination paths for each object can be further broken down into the 'pack' and the 'item'. The 'pack' is the first portion of the 'upper' path, and the 'item' is a single directory added to the end of it.
  18.  
  19. the 'pack' portion is determined by the 'pack' object field, and other fields depending on that value. They are as follows.
  20.  
  21.  
  22. 2: the 'pack' is 'minimal'. The items are 'name - slot' for each slot in the slots array. This results in 5 'upper' paths, each with 2 'lower' paths:
  23.  
  24. minimal + item1 + lower1
  25. minimal + item1 + lower2
  26. minimal + item2 + lower1
  27. etc.
  28.  
  29. 1: the 'pack' is 'partial'. The items are 'name-slot' for each slot in the slots array. There are always less than 5 slots for these objects, resulting in 1 to 4 'upper' paths, again each with 2 'lower' paths:
  30.  
  31. partial + item1 + lower1
  32. partial + item1 + lower2
  33. partial + item2 + lower1
  34. etc.
  35.  
  36. 0: The most complex option. This can actually result in up to two of 8 values, depending on the 'rank' and 'base_swaps' fields of the object.
  37.  
  38. each 'rank' value corresponds to a string, which is a part of both possible 'pack' paths.
  39.  
  40. All objects with pack 0 will have 'rank - extended' as a pack name, with 'name - slot' items for each slot in the slots array (total 5), plus 2 'lower' paths per item, for 10 total:
  41.  
  42. rank - extended + item1 + lower1
  43. rank - extended + item1 + lower2
  44. rank - extended + item2 + lower1
  45. etc.
  46.  
  47. if the 'base_swaps' array is not empty, the object ALSO has 'rank - recommended' as a pack, with the items determined by the values in the array, up to 4 possible options, and 2 'lower' paths each, for up to 8 destination paths:
  48.  
  49. rank - recommended + item1 + lower1
  50. rank - recommended + item1 + lower2
  51. rank - recommended + item2 + lower1
  52. etc.
  53.  
  54.  
  55.  
  56.  
  57.  
  58. the other fields are not used for the path-creation process, which is where the most complexity is.
  59.  
  60.  
Add Comment
Please, Sign In to add comment