make fs plugin problem

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Sandr
Junior Member
Junior Member
Posts: 3
Joined: 2005-02-15, 10:19 UTC
Location: Ukraine, Odessa

make fs plugin problem

Post by *Sandr »

1) In sample fsplugin.wfx (c) C. Ghisler i found some problem:
in plugin root directory, if i drag`n`drop some folder on root sign (".."),
TC rise exeption. Tell me pls, how can i fix it in my plugin.

2) On copy folder from system disks (C, D, E etc.) to my fsplugin directory, how i can get source directory? FsMkDir allow receive only dest.
directory.

Thx. Sorry for my bad english.
Sandr
Junior Member
Junior Member
Posts: 3
Joined: 2005-02-15, 10:19 UTC
Location: Ukraine, Odessa

Post by *Sandr »

First fixed. Waiting for reply on second qestion.

Thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2) On copy folder from system disks (C, D, E etc.) to my fsplugin directory, how i can get source directory? FsMkDir allow receive only dest.
directory.
Sorry you can't - only with the files being copied from that directory. So you can just ignore the mkdirs and instead store the files from that directory. The only negative side effect is that you cannot store empty directories.
Author of Total Commander
https://www.ghisler.com
Sandr
Junior Member
Junior Member
Posts: 3
Joined: 2005-02-15, 10:19 UTC
Location: Ukraine, Odessa

Post by *Sandr »

ghisler(Author) wrote:
2) On copy folder from system disks (C, D, E etc.) to my fsplugin directory, how i can get source directory? FsMkDir allow receive only dest.
directory.
Sorry you can't - only with the files being copied from that directory. So you can just ignore the mkdirs and instead store the files from that directory. The only negative side effect is that you cannot store empty directories.
:((
thank you anyway
User avatar
MayorA
Junior Member
Junior Member
Posts: 50
Joined: 2005-07-30, 18:11 UTC
Location: Switzerland

Source Directory Retrieval Problem

Post by *MayorA »

Hi

I'm basically encountering the same problem while developping the CVSBrowser FS plugin.

The problem is, that for creating directories in CVS, I have to exactly know from where the FsMkDir() during a multi-copy (FS_STATUS_OP_PUT_MULTI) was called.
As mentioned, to store the files in that directory and then to try to find out which was the origine directory, only works for non-empty directories.

I tried to use messages like cm_CopySrcPathToClip and then retrieving this source path from the clipboard. However such messages are only processed by TC after having processed the whole multi-copy event, which of course is to late.

Is there any possibility to retrieve this source path or to create a hook (callback) after the cm_CopySrcPathToClip has been processed ?

Or is there an easier way to figure out, what the source path was ?
CVSBrowser WFX Plugin Author
Post Reply