Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 02-19-2006, 08:16 PM   #1 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default Directory & File Path Functions

This thread can be removed. It is not supported here anymore.

Last edited by XxSP1DERxX; 04-23-2006 at 02:51 AM.
XxSP1DERxX is offline   Reply With Quote
Old 02-19-2006, 08:18 PM   #2 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 614
Default

nice man you just keep impressing me hehe but great job
__________________
Casiopia
Asmir3 is online now   Reply With Quote
Old 02-20-2006, 03:15 AM   #3 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

Updated it with support for DirectoryInfo & FileInfo. Also EnsureDirectory will now accept file paths in strings and still work properly. Also removed the uncessary Directory.Exists, as this is done internally by the CreateDirectory method.
XxSP1DERxX is offline   Reply With Quote
Old 02-20-2006, 10:33 AM   #4 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,762
Default

GetFiles, should returm FileInfo[]. You can access attributes of the files better this way. FileInfo.Extension and such. You should also have it do bool recursive.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 02-20-2006, 12:10 PM   #5 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

okay I will change that immediately.
XxSP1DERxX is offline   Reply With Quote
Old 02-20-2006, 02:03 PM   #6 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

I added a bool for recursing.
I added FileInfo[] returning for GetFiles. When you want to return a FileInfo[], you will need to use a DirectoryInfo or FileInfo path. You can easily do new DirectoryInfo( stringPath ) or new FileInfo( stringPath ) if you have a string based path.
TrimPaths now returns FileInfo[] as well as string[]
XxSP1DERxX is offline   Reply With Quote
Old 02-20-2006, 02:56 PM   #7 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

Added some error/null checks. Fixed an infinite loop bug.
XxSP1DERxX is offline   Reply With Quote
Old 02-20-2006, 03:38 PM   #8 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

I fixed a few more bugs.
XxSP1DERxX is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5