It's UWAweek 19

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 1 other person reading this forum.


SVG not supported

Login to reply

👍?
helpful
10:12am Sun 8th Oct, Lewei X.

I read in Jacob's post that if a subdirectory is empty, we do not create it in the other directories to be synced. E.g. if we are syncing bettwen ~/dirA and ~/dirB, and there is an empty subdirectory ~/dirA/dirsub then ~/dirB/dirsub won't be created at all. I was wondering if definition of "empty" means no directories AND no files. Let me outline my concerns with this example. E.g. we have ~/dirA/dirsub/dirsubsub/ where dirsubsub/ is empty (containing no subdirectories or files). we wouldn't create ~/dirB/dirsub/dirsubsub/ as it is empty, but now we end up with ~/dirB/dirsub that is empty so we wouldn't create it either. So if we have a bunch of subdirectories within subdirectories that ultimately contains no files, do we just not create the subdirectories in ~/dirB altogether? The problem is if say there existed a file ~/dirA/dirsub/dirsubsub/thing.txt. We wouldn't be able to create ~/dirB/dirsub/ and ~/dirB/dirsub/dirsubsub/ until we confirm that the subdirectory of ~/dirA does in fact contain a file. As I'm typing this, I realize that this is probably what we need to do, just need some clarification on if my understanding is correct.

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  8:08AM Aug 25 2024
Privacy policy