B4J Question [risolto] HttpUtils2Service.TempFolder error

ivanomonti

Expert
Licensed User
Longtime User
in main of the project I create and declare general folders, but when I try to change the Temp folder of httpUtils2 it gives me this error

code:
Sub AppStart (Form1 As Form, Args() As String)
    
    MainForm = Form1
    MainForm.Resizable = False
    MainForm.Show
    
    Dim PagesManager As B4XPagesManager
    PagesManager.Initialize(MainForm)
    
    If File.IsDirectory(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop) = False Then
        File.MakeDir(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop)
        File.MakeDir(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop & "/LONG")
        File.MakeDir(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop & "/SHORT")
        File.MakeDir(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop & "/SETTING")
        File.MakeDir(GetSystemProperty("user.home", "") & pathDesktop,pathfolderdesktop & "/LIST")
        pathDesktop = GetSystemProperty("user.home", "") & pathDesktop & "/" & pathfolderdesktop
    Else
        pathDesktop = GetSystemProperty("user.home", "") & pathDesktop & "/" & pathfolderdesktop
    End If
    
    
    HttpUtils2Service.Service_Create
    HttpUtils2Service.TempFolder = GetSystemProperty("user.home", "") & pathDesktop & "/SETTING/"
    
End Sub


B4X:
java.io.FileNotFoundException: C:\Users\MontiIvanoAngeloC:\Users\MontiIvanoAngelo\Desktop\Trading Forex Maye by Ivano and Lorenzo\SETTING\1 (La sintassi del nome del file, della directory o del volume non è corretta)
 

ivanomonti

Expert
Licensed User
Longtime User
my error pardon

HttpUtils2Service.TempFolder = GetSystemProperty("user.home", "") & pathDesktop & "/SETTING/" = error
HttpUtils2Service.TempFolder = pathDesktop & "/SETTING/" = ok
 
Upvote 0
Top