Anti Virus Spyware

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 10 February 2009

Weird Mac file copy bug - or is it a feature?

Posted on 01:58 by Unknown
I use both a Mac running OS X and a PC running Windows and sometimes the differences between the way they work can catch you out. It happened recently and I have only just realised what has been going on.

The Windows part of the website is created on a Windows PC and the Mac part is created on a Mac. Of course, I could simply use one or the other to do the whole website, but it's useful to experience both platforms because I write about both the PC and the Mac.

I keep a copy of the website in a folder on each computer. On the PC it's the htdocs folder in C:\Xamp (Xamp is a web server based on Apache and is handy for testing), on the Mac it is also the htdocs folder, but this time it's in Applications\Mamp (Mamp is a web server based on Apache and is handy for testing). The problem is how to keep them in sync.

One way is to drag the htdocs folder to a USB memory drive, take it to the other computer and drag it off. It can be done over the network too. The way Windows and OS X works when you do something like this has caught me out and files have been going missing on the Mac. Is it a feature or a bug?

If you drag a group of files and folders from one place and drop them on another place there is a conflict if the destination contains files or folders with the same names. Both Windows and OS X ask you if you want to replace the destination files and folders with the source, which is fine, but Windows and OS X work differently.

The problem is with subfolders. When the source and destination both contain a subfolder with the same name Windows asks if you want to replace the destination with the source. If you say yes, then the files in the source subfolder are copied to the destination subfolder and files with the same name are overwritten. Files with different names are kept. What you end up with is a folder that combines the files from the source and destination. This is exactly what I wanted.

Do this in OS X and you are asked if you want to replace the subfolder. If you say yes then the folder in the destination is deleted and replaced by the source folder. It really is deleted and it's not moved the the Trash. What you end up with is not a combined folder that contains files from both the source and destination, but just the source.

This isn't what I wanted. and it's how I have been losing files. I assumed OS X would only replace the files in the subfolder with the ones I'm copying from the PC, leaving the ones I'd created on the Mac, so I'd end up with a synced folder. Instead files I'd created for the Mac part of the website were being deleted because the subfolder was being deleted and replaced.

This is obviously something you need to be wary of when copying files and folders to update a destination folder.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Mac, OS X, Windows | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Symantec opt-out trialware is a bad idea
    Norton AntiVirus 2011 is now available and it looks interesting. For example, it now scans your Facebook page for bad links to dodgy websit...
  • Which is more secure, Windows PCs or Apple Macs?
    This is a debate that has been going on for years and will no doubt continue for several more. The reason I bring it up is an article that w...
  • Why Amazon's tablet will succeed
    Tablet makers are having a rough time competing with Apple's hugely successful iPad and some are suffering from poor sales, some are suf...
  • Internet Explorer is past its use-by date
    Are you still using Internet Explorer to browse the web? If you are, you are in the majority, but Microsoft's market share is steadily s...
  • How much memory does a tablet need?
    Microsoft's new Surface tablet comes with a minimum of 32Gb of memory storage and this is double what is supplied with the iPad at the s...
  • Apple iTablet - where will you use it?
    The rumours around Apple's tablet computer/hand-held device still persist and it seems like there is a news item somewhere on the web al...
  • Select your web browser - too much choice?
    Microsoft has been forced to display a web browser choice screen in Windows in the EU. You can see the screen here and there are 12 browser...
  • iPhone nano coming soon
    Every year there are rumours that Apple is working on an iPhone nano. This will be smaller, lighter and cheaper than the ordinary iPhone and...
  • Take your time and avoid problems
    Computers are multitasking devices that can do several things at once. For example, you can download files, play music and edit a document a...
  • Should you upgrade?
    With Christmas and the New Year rapidly approaching, it is the season for spending and thoughts of treating yourself may have crossed your m...

Categories

  • Android
  • app
  • Apple
  • cloud computing
  • eBook
  • Facebook
  • Galaxy
  • gaming
  • Google
  • iCloud
  • internet
  • iOS
  • iPad
  • iPhone
  • iPod
  • iPod Touch
  • iTunes
  • Kindle
  • Leopard
  • Linux
  • Lion
  • Live Mesh
  • Mac
  • MacBook
  • malware
  • Mavericks
  • Microsoft
  • Mountain Lion
  • online storage
  • OS X
  • PayPal
  • PC
  • phone
  • Ping
  • programming
  • Samsung
  • security
  • SkyDrive
  • Snow Leopard
  • software
  • Surface
  • tablet
  • utility
  • Vista
  • Windows
  • Windows 7
  • Windows 8
  • XP

Blog Archive

  • ►  2013 (66)
    • ►  November (2)
    • ►  October (3)
    • ►  September (10)
    • ►  August (6)
    • ►  July (8)
    • ►  June (8)
    • ►  May (6)
    • ►  April (8)
    • ►  March (6)
    • ►  February (4)
    • ►  January (5)
  • ►  2012 (95)
    • ►  December (3)
    • ►  November (4)
    • ►  October (12)
    • ►  September (8)
    • ►  August (9)
    • ►  July (6)
    • ►  June (10)
    • ►  May (6)
    • ►  April (7)
    • ►  March (11)
    • ►  February (11)
    • ►  January (8)
  • ►  2011 (49)
    • ►  December (5)
    • ►  November (8)
    • ►  October (6)
    • ►  September (4)
    • ►  August (3)
    • ►  July (4)
    • ►  June (2)
    • ►  May (2)
    • ►  April (3)
    • ►  March (6)
    • ►  February (2)
    • ►  January (4)
  • ►  2010 (51)
    • ►  December (3)
    • ►  November (3)
    • ►  October (4)
    • ►  September (6)
    • ►  August (5)
    • ►  July (3)
    • ►  June (7)
    • ►  May (3)
    • ►  April (3)
    • ►  March (6)
    • ►  February (4)
    • ►  January (4)
  • ▼  2009 (28)
    • ►  November (3)
    • ►  October (4)
    • ►  September (3)
    • ►  August (4)
    • ►  July (5)
    • ►  June (2)
    • ►  May (3)
    • ►  March (1)
    • ▼  February (2)
      • DIY software
      • Weird Mac file copy bug - or is it a feature?
    • ►  January (1)
  • ►  2008 (15)
    • ►  December (2)
    • ►  November (4)
    • ►  October (4)
    • ►  August (4)
    • ►  July (1)
Powered by Blogger.

About Me

Unknown
View my complete profile