How to ignore ''.appledouble'' copied from MacOS ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
yozeeto
Junior Member
Junior Member
Posts: 8
Joined: 2014-02-20, 19:55 UTC

How to ignore ''.appledouble'' copied from MacOS ?

Post by *yozeeto »

Hello.

I've been looking for a solution to below problem, with no luck unfortunately.

I work on Win7 and I have many MacOS clients.
Whenever I download the project files from them the folders contain "apple dust" files.

I've configured the TC to ignore the files like:
.DS_Store
.BridgeCachet
._.BridgeCache
._.BridgeCacheT
Thumbs.db
.AppleDouble

"Ignore List" hides the files indeed, but when the folder containing them is copied/downloaded to my machine, it's copied with those files.
This becomes a problem when I finish the project and want to archive it.
To archive them I simly "move" them to my server, but as they contains those files, TC prompts me every time it tries to delete a folder (after it's been copied to my server), that the folder can't be deleted.
The reason for that is that it still contain those files...

It's a little bit annoying when I need to move a folder with huge project containing hundreds of folders, which I'd like to set for moving/archiving and leave my workstation, but instead I have to sit and click "OK" few hundred times...

My question is... is there any way to make TC ignore the files completely - not just hiding them, but also not copying them to my system?

Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC doesn't copy ignored files. But since you move folder containing ignored files, TC have to move ignored files too, otherwise it will be moved only partially.

Since these files aren't needed for you, it maybe better not to hide them but show as a reminder that they are still exist, as a sign that they should be deleted by clicking buttonbar button. It is quite easy to write batch file that will recursively delete such files from folder structure:

Code: Select all

@del /f /s /q *.DS_Store *.BridgeCachet *._.BridgeCache ...
yozeeto
Junior Member
Junior Member
Posts: 8
Joined: 2014-02-20, 19:55 UTC

Post by *yozeeto »

Hi MVV,

Thanks for your reply and a suggestion - I'll try that for sure.

Maybe there is something wrong with my TC then, as it always downloads ignored files and folders from my clients' FTP.

Cheers
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Actually, TC help says about ignore list:
Files on ftp servers, within archives, plugins or virtual folders like the desktop cannot be ignored.
yozeeto
Junior Member
Junior Member
Posts: 8
Joined: 2014-02-20, 19:55 UTC

Post by *yozeeto »

Yes, therefore my question:

Is there any way to make TC ignore the files completely - not just hiding them, but also not copying them to my system?

Cheers!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems that currently there's no way to ignore specific files when you download something via FTP.
yozeeto
Junior Member
Junior Member
Posts: 8
Joined: 2014-02-20, 19:55 UTC

Post by *yozeeto »

Hello again.

I tried to add a button with the following in the "Command" field
(please note, the .AppleDouble is a folder):

Code: Select all

@del /f /s /q .AppleDouble
@del /f /s /q ".AppleDouble"
@del /f /s /q "\.AppleDouble"
@rd /s /q .AppleDouble
@rd /s /q ".AppleDouble"
@rd /s /q "\.AppleDouble"
All of them prompted "File not found", can you let me know what I'm doing wrong? I disabled the "Ignore list" and I can see .AppleDouble folder there.

Thanks again
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can't type such commands in Command field, these are commands of Windows CMD processor.

It is impossible to recursively delete dirs with specific names using single rd command.

Try to create cleaner.cmd file somewhere:

Code: Select all

@echo off
if -%1==- echo Parameters: "%%P" & pause & goto :EOF
for /D %%d in ("%~1\*") do (
	echo Cleaning %%d:
	del /f /q "%%d\Thumbs.db"
	rd /s /q "%%d\.AppleDouble"
	echo.
	call %0 %%d np
)
if not -%2==-np pause
Add more similar del and rd commands with file and dir names to remove.
Then drag it to buttonbar and edit button by adding "%P" to Parameters field. It will scan current dir and nested ones on order to remove undesired files and dirs.
User avatar
white
Power Member
Power Member
Posts: 6013
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:

Code: Select all

..
for /D %%d in ("%~1\*") do (
	..
	call %0 %%d np
)
if not -%2==-np pause
Isn't it better to use "for /R" ?

Code: Select all

..
for /R %1 /D %%d in (*) do (
	..
)
pause
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

white,
I don't know if it is better. :)
BTW in my case I delete undesired files and folders on each level before I enumerate other subdirs, I don't know if it will correctly work with /R.
User avatar
white
Power Member
Power Member
Posts: 6013
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:white,
I don't know if it is better. :)
BTW in my case I delete undesired files and folders on each level before I enumerate other subdirs, I don't know if it will correctly work with /R.
I think it works fine. /R enumerates the same way. A quick test worked OK.
Post Reply