Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plugin API Wish

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Peter Abelsson
Junior Member
Junior Member


Joined: 14 Mar 2003
Posts: 5

PostPosted: Fri Mar 14, 2003 7:44 am    Post subject: Plugin API Wish Reply with quote

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
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Fri Mar 14, 2003 8:36 am    Post subject: Reply with quote

Indeed this isn't currently available - why would this be useful?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Peter Abelsson
Junior Member
Junior Member


Joined: 14 Mar 2003
Posts: 5

PostPosted: Tue Mar 18, 2003 9:44 am    Post subject: Reply with quote

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 Smile

/Peter
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group