Go Back   FlashFXP Forums > Community Chatter > Programming

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread
Old 06-09-2003, 08:37 PM   #1
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default vfs resolving algo

How's that algo for resolving vfspath ?
It seems to works ok, to resolve both vfs->real and real->vfs...

// Fetch the right vfs for uid
// search userfile for vfsfile
// if not found... search groupfile for vfsfile
// if not found... search default userfile in ioftpd.ini

// max=0
// For each line in the .vfs file
// compare the start of the vfs from the file with the start of the vfs_path to resolve
// if match... and if strlen(vfspath_from_file)>max... save realpath as best_realpath and the length of the vfs_path that match as max

// concat best_realpath and substr(vfs_path,max+1,end)
Mouton is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 11:41 AM.