I'm trying to get a for
loop to get all the contents of a directory and copy it to another directory on the system, but I am faced with a dilemma: if I loop through all the files and copy those over to the other directory and vice versa, once a file from either directories is deleted, the loop will just think that the file is un-synced and copy it over.
What would be my best bet to sync two separate folders on OS X?
In other words, how can I get one folder accessible from another?