Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
18 crawler(s) on-line.
 91 guest(s) on-line.
 1 member(s) on-line.


 pixie

You are an anonymous user.
Register Now!
 pixie:  4 mins ago
 kolla:  17 mins ago
 OlafS25:  17 mins ago
 amigakit:  34 mins ago
 Schlissel:  40 mins ago
 VooDoo:  1 hr 6 mins ago
 Musashi5150:  1 hr 25 mins ago
 Karlos:  1 hr 35 mins ago
 densho:  2 hrs 1 min ago
 Gunnar:  2 hrs 5 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  AmigaOS4.1 OWB Development whilst we wait? part 2
Register To Post

PosterThread
MickJT 
Re: AmigaOS4.1 OWB Development whilst we wait? part 2
Posted on 18-May-2011 14:00:42
#1 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

@Deniil715

As I said, it parses it as an Amiga path first. If it doesn't exist, then it parses it as a unix path. So there's no issue here in breaking any Amiga style paths. It's exactly your fix as posted by kas1e, plus trying again as a unix path if it can't find it.

For clarity

1) If filepath starts with /, it strips it. (Your fix)
2) Try to open filepath.
3) If cannot open filepath, try original filepath before / was stripped. (My change).

Any html manuals that use ".." will have no problem either.

Also, unix paths are only ever going to be used if linked with libunix. So, you've got the choice anyway.

Last edited by MickJT on 18-May-2011 at 02:24 PM.
Last edited by MickJT on 18-May-2011 at 02:22 PM.
Last edited by MickJT on 18-May-2011 at 02:20 PM.
Last edited by MickJT on 18-May-2011 at 02:20 PM.
Last edited by MickJT on 18-May-2011 at 02:18 PM.

 Status: Offline
Profile     Report this post  
 Top | Parent



[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle