Skip to main content
Participating Frequently
May 7, 2008
Question

Using "\" or "/" in path

  • May 7, 2008
  • 2 replies
  • 722 views
We have several clients that host our product externally on their website. So therefore, when a change is made to a file we need to FTP it out to their site. The issue I am running into is this. For some clients the remotefile attribute of the cfftp tag needs to be in the format SomeDIR \ anotherDIR \ thefile.xxx but apparently for others I need to use the / instead. If I use the \ for those clients it creates a directory called SomeDIRanotherDIR and puts the file in there, ignoring the \. Why is that? Is that some kind of FTP setting?

TIA
    This topic has been closed for replies.

    2 replies

    Inspiring
    May 8, 2008
    There is the ever popular cftry/cfcatch.

    Or you can ask them at the same time you ask them what directory the file is supposed to go into.
    Mr_VballAuthor
    Participating Frequently
    May 8, 2008
    What about the User_agent variable? Do Unix and/or LINUX have something else in it?
    Inspiring
    May 7, 2008
    It's an operating system thing. Windows uses "\". Unix and Linux use "/".
    Mr_VballAuthor
    Participating Frequently
    May 8, 2008
    quote:

    Originally posted by: Dan Bracuk
    It's an operating system thing. Windows uses "\". Unix and Linux use "/".


    I see. Thanks. Being strictly a "windows guy", who knew :)

    So as a follow-up, Is there a way to programatically detect what OS the client is using?