Creating a Subdirectory on a server - v3

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ProxyKing
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6
Joined: Tue Sep 04, 2007 5:27 pm

Creating a Subdirectory on a server - v3

Post by ProxyKing » Fri Sep 12, 2008 7:47 pm

Hey Guys,

I was able to create a subdirectory on a server with v2.8.1 and 2.9 as long as I had mapped the server on a windoze OS... I upgraded to v3 and LOVE the new editor but found out I cannot create a subdirectory on the same server like I had before. The code runs but no subdirectory is created.

I WAS using:

put (there is a folder tFilePath) into folderExists
if folderExists = false then
create folder tFilePath
end if

This worked so nicely in the previous versions.... I don't want to go back to a previous version... I really LIKE the new editor. Anyone have any way of creating a subdirectory on a server...?

Thanks
Paul

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Sep 12, 2008 8:56 pm

Hi Paul,

Please, try your script in 2.9 and make sure that it really still works.

A slightyl simpler version of your script:

Code: Select all

if there is no folder tFilePath then
  create folder tFilePath
end if
Is the disk still mounted on your machine? Can you make a the folder manually?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ProxyKing
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6
Joined: Tue Sep 04, 2007 5:27 pm

Creating a Subdirectory on a server - v3

Post by ProxyKing » Fri Sep 12, 2008 9:36 pm

Hey Mark,

Thanks!! That IS much more simple... I like that. It doesn't work in 2.9 anymore and I think I know why... when I was testing it I just had ONE subdirectory underneath it all... I'm testing a different one where I want a subdirectory under a subdirectory that doesn't exist...

I had a stupid moment... If I create the subdirectory first and THEN the other subdirectory it works fine.

Here I thought that they "fixed" an undocumented feature in v3... it CLEARLY states in the docs that you cannot create a folder on a server.

Thanks
Paul

Post Reply