It's UWAweek 9 (1st semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 3 other people reading this forum.


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
2:13pm Wed 27th Sep, Jacob R.

When trying to sync files between two locations, how do we determine whether one file should overwrite another? There's obviously the base case, where you just change the contents of a file "thing1" and simply overwrite its copy in the other directory based on the fact they have the same name "thing1" and the first version has been edited more recently. However, what if the name of the file is changed and the contents are edited. Say "thing1" exists in both directories, and is then changed to be called "thing2" in one directory (dir1), and the contents are altered slightly. Would these sync so that "thing2" overwrites "thing1" in dir2, or would they then be assumed to be different files due to having different file names, and wouldn't overwrite each other (instead just both creating a copy of themselves and transferring it over to the other). To clarify this, allow me to create a snazzy diagram: Before: Dir1: "thing1" Dir2: "thing1" Change made: Dir1: "thing2" (file is renamed) Dir2: "thing1" After: Dir1: "thing2" Dir2: "thing2" OR: Dir1: "thing2" "thing1" Dir2: "thing2" "thing2" (Are assumed to be different files that both need to be backed up)

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy