News:

Wondering if this will always be free?  See why free is better.

Main Menu

move-file behavior in mod

Started by TriGrrrl, July 11, 2005, 04:39:58 PM

Previous topic - Next topic

TriGrrrl

Let's say I am feeling hostile towards Brad Pitt and I want to disable his avatar.  :)

I think I should be able to do it in package-info.xml, by renaming the file:
<install>
<move-file name="$avatars/Actors/Brad_Pitt.jpg" destination="$avatars/Actors/Brad_Pitt.jpg.bak" />
</install>



Doing so gives me this output:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Move File    ./Packages/temp/avatars/Actors/Brad_Pitt.jpg => avatars/Actors/Brad_Pitt.jpg.bak/Brad_Pitt.jpg



Why is it behaving like this?  Where is the "temp" directory reference coming from?  What is a good way to do what I'm intending?  My searches for in-depth coverage of this command have been fruitless.


Thanks!

TG

[Unknown]

Quote from: TriGrrrl on July 11, 2005, 04:39:58 PM
Let's say I am feeling hostile towards Brad Pitt and I want to disable his avatar.  :)

Haha...

Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Move File    ./Packages/temp/avatars/Actors/Brad_Pitt.jpg => avatars/Actors/Brad_Pitt.jpg.bak/Brad_Pitt.jpg

Why is it behaving like this?  Where is the "temp" directory reference coming from?  What is a good way to do what I'm intending?  My searches for in-depth coverage of this command have been fruitless.

Should be:

<move-file from="$avatars_dir/Actors/Brad_Pitt.jpg" destination="$avatars_dir/Actors" name="Brad_Pitt.jpg.bak" />

It's designed with the theory that you'll be installing things most commonly, not moving files already there.

-[Unknown]

TriGrrrl

Thank you, [Unknown], for all the tips!

I think I'm actually starting to get the hang of this mod business.  ;)


TG

Advertisement: