Go Back   FlashFXP Forums > >

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

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 06-09-2003, 08:37 PM   #1
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
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

Tags
found, search, userfile, vfs, vfsfile

Thread Tools
Display Modes 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

Forum Jump


All times are GMT -5. The time now is 02:02 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)