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...
  • Speed up Safari by 13% on the Mac
    Operating system updates tend to add more code and bloat to the system and they don't often result in increased speed. There are frequen...
  • Explore the world with Photowhirl for Windows 8
    There are some great photo sharing services on the web and sites like Flickr, Instagram and others are fantastic places for people that like...
  • Phishing on the Mac
    We all know that the Mac is a very secure operating system and that there are hardly any viruses, spyware, adware or other type of malware p...
  • Apple and Microsoft move to ARM chips
    It seems that both Apple and Microsoft think that the future of microprocessors may lie with ARM rather than Intel products. Both companies ...
  • Should I upgrade to OS X Lion?
    Apple recently launched OS X Lion and it is very cheap and very easy to download from the Mac App Store, providing you have a fast internet ...
  • Is Apple's MacBook Air a netbook?
    After saying for a long time that it would never make a netbook computer, Apple, goes and launches one, or has it? Is the new MacBook Air wi...
  • Decoding a website URL
    It is easy to get caught out by phishing scams if you don't know how website addresses work. The URL of a web page has several component...
  • Conflicting iPad buyer surveys
    Just sitting at McDonald's reading through the latest headlines on my RSS feeds and I noticed a couple that immediately stood out. Both ...
  • Download problems with the Mac App Store
    The Apple Mac App Store must work in a strange way because it is causing problems for some people, me included. Some people have found that ...

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