Opened 12 years ago

Last modified 12 years ago

#38120 new enhancement

RFE: automatically remove .DS_Store files from build directories

Reported by: cooljeanius (Eric Gallager) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.3
Keywords: Cc:
Port:

Description

Often times I'll stop a port's build part way through to check on stuff in Finder, and when I do that, the port's build path will get littered with .DS_Store files, causing the port's build folder to not get deleted during the cleaning step, because it won't be empty. These files should be deleted so that build directories get cleaned away properly.

Attachments (1)

DS_Stores.tiff (49.0 KB) - added by cooljeanius (Eric Gallager) 12 years ago.
All the open folders in this screenshot with .DS_Store files in them were supposed to have been deleted

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Could you attach a log showing the problem?

comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)

Uh, not really, because it's not something that gets logged. I can attach a screenshot though.

Changed 12 years ago by cooljeanius (Eric Gallager)

Attachment: DS_Stores.tiff added

All the open folders in this screenshot with .DS_Store files in them were supposed to have been deleted

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Deleting all the files is overkill for that particular problem. Deleting the one in the top-level dir would do it, or deleting the dir if it contains no other dirs rather than requiring it to be completely empty.

comment:4 in reply to:  3 Changed 12 years ago by cooljeanius (Eric Gallager)

Replying to jmr@…:

Deleting all the files is overkill for that particular problem. Deleting the one in the top-level dir would do it, or deleting the dir if it contains no other dirs rather than requiring it to be completely empty.

Sure, whatever works. I just focused on .DS_Stores because they're annoying.

Note: See TracTickets for help on using tickets.