| View previous topic :: View next topic |
| Author |
Message |
Peter Abelsson Junior Member

Joined: 14 Mar 2003 Posts: 5
|
Posted: Fri Mar 14, 2003 7:44 am Post subject: Plugin API Wish |
|
|
When I copy a directory from the harddrive into a plugin a wish there was a way to find out what dir on the harddrive was copied. Currently I don't think there is a failsafe way of doing this. If the directory that is copied is empty only a FsMkDir is triggered and I as a plugin author has no way of knowing what dir was acutally copied.
/Peter |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24590 Location: Switzerland
|
Posted: Fri Mar 14, 2003 8:36 am Post subject: |
|
|
Indeed this isn't currently available - why would this be useful? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Peter Abelsson Junior Member

Joined: 14 Mar 2003 Posts: 5
|
Posted: Tue Mar 18, 2003 9:44 am Post subject: |
|
|
| ghisler(Author) wrote: | | Indeed this isn't currently available - why would this be useful? |
Well I was thinking of a couple of plugin ideas where the plugin will contain a list of directories. To add directories to the plugin a convenient way would be to use the copy command. But then the problem occurs to know what directory was actually copied, especially if the directory is empty.
The workaround I can think of is to get the current directory and the check the FsMkDir and compare it with the directories in the current directory. But I don't think TC switches the current directory to the sourcepane at all times. So actually what would be nice to get hold of is the path shown in the sourcepane. I guess it could be retrieved by sending a cm_CopySrcPathToClip. But the you have to push and pop the current clipboard I persume. Oh well I'm just thinking aloud here
/Peter |
|
| Back to top |
|
 |
|