|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#3 (permalink) |
|
Join Date: Oct 2002
Age: 22
Posts: 4,689
|
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.
|
|
|
|
|
|
#4 (permalink) |
|
ConnectUO Creator
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,762
|
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 |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Oct 2002
Age: 22
Posts: 4,689
|
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[] |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|