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

  • An unbiased opinion is hard to find
    I read a couple of interesting articles recently and they are well worth looking at because they highlight a very strange phenomenon. They a...
  • Discover what can access your Google account and block it
    There are many websites and services that require you to sign in before you are allowed to access them. To make the task easier they often p...
  • 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...
  • iPad got fat and heavy till the Air came along
    It is interesting reading the reviews of the latest iPad Air and a lot of people have commented on how thin and light it is. Apple gave it t...
  • Apple Macs will dominate in 2050
    Apple Macs will dominate the computer market in 2050. How do I know? Take a look at the data at Netmarketshare . I am joking of course. It...
  • New slimmer PlayStation 3
    Sony has reworked its popular PlayStation and the new version looks a treat. It is 32% smaller than the old one that it replaces and it is 3...
  • The Archos Smart Home Phone
    The Archos Smart Home Phone is an interesting idea. It is an Android phone that looks, feels and works like a mobile phone, but it is a hom...
  • PerfectDisk optimises the disk drive for performance
    Over time the contents of hard disk drives become fragmented and files are literally broken into small pieces that are scattered all over th...
  • Clear Windows 8 tiles of personal information
    The most noticeable feature of Windows 8 is, of course, the Start screen. It has a collection of tiles that are used to start programs inste...
  • The ups and downs of web browser market shares
    It is interesting to see which web browsers people are using and to look at the trends. Which browsers are gaining market share and which on...

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