Roberto P. Well-Known Member Licensed User Longtime User Dec 29, 2020 #1 I am trying to send a file to linux server, but I have problems setting the path. Has anyone already had this experience? thank in advance Regards
I am trying to send a file to linux server, but I have problems setting the path. Has anyone already had this experience? thank in advance Regards
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2020 #2 Not enough information here for us to help you. Upvote 0
Roberto P. Well-Known Member Licensed User Longtime User Dec 29, 2020 #3 I was not clear. I wanted to set the path to upload files in specific folders. SOLVED Code: Copy Dim os As String = GetSystemProperty("os.name", "").ToLowerCase If os.Contains("linux") Then dirfolder = "///opt/mydir/mysubdir/" ELSE dirfolder = C://MYDIR End If Dim out As OutputStream = File.OpenOutput(dirfolder, name, False) Upvote 0
I was not clear. I wanted to set the path to upload files in specific folders. SOLVED Code: Copy Dim os As String = GetSystemProperty("os.name", "").ToLowerCase If os.Contains("linux") Then dirfolder = "///opt/mydir/mysubdir/" ELSE dirfolder = C://MYDIR End If Dim out As OutputStream = File.OpenOutput(dirfolder, name, False)