It's UWAweek 30 (2nd 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 13 other people reading this forum.


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
5:52am Sun 15th Oct, Christopher M.

ANONYMOUS wrote:
> 1. I was testing the sample solution and when I enabled "-a" the output of the program still showed that it was skipping the "." and ".." directories - is this incorrect or is my understanding of the project requirements wrong?
I strongly suggest that you review what those '.' and '..' entries are (Lecture 15).
> 2. What is meant to happen synchronising with both -a and -r enabled (and -n option not enabled). My first thought is that the syncing would recursively "enter" and synchronise the ".." directories > i.e. sync .., ../.., ../../.. etc. (in which case the whole computer will be synced!!!). However, from checking ls -a -R, it appears that the ".." directory isn't "entered"/scanned when -an and -r are both provided. Just wanted to ask for some clarity on this - given that I can't test this using the sample solution (as the zip file we provide would only be the top-level directory and wouldn't provide the file structure ".."?)
Reviewing what those '.' and '..' entries are will answer your question. Running the sample solution shows the correct 'treatment' of those entries.

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  7:24AM Jul 25 2024
Privacy policy