thanks shai.. no luck unfortunately, i made sure there was no /// 

but i still see 
Failed to create directory 
/var/mobile/Containers/Data/Application/4B8FF26A-77E4-473E-A4A8-4D2D6F119B26/Documents/com.outlier.lang/gaztest/testzipfolder/

I even wrote a simple test to simply make a dir, but it always fails on 
iphone, it is as if you cannot make dirs on iphone at all.. but surely 
someone would have noticed by now... 

this code 

  FileSystemStorage fs = FileSystemStorage.getInstance();
        fs.mkdir("ZZZTESTA");
        fs.mkdir("ZZZTESTB");
        String testpath = fs.getAppHomePath()+"/xxxtesta";
        fs.mkdir(testpath);
         String testpathb = fs.getAppHomePath()+"xxxtestb";
        fs.mkdir(testpathb);

results in 

 Jan 16 15:53:15 USERs-iPhone MyApplication[2388] <Notice>: Failed to 
create directory ZZZTESTA
 Jan 16 15:53:15 USERs-iPhone MyApplication[2388] <Notice>: Failed to 
create directory ZZZTESTB
 Jan 16 15:53:15 USERs-iPhone MyApplication[2388] <Notice>: Failed to 
create directory 
/var/mobile/Containers/Data/Application/F0E3CD3E-F560-4E5A-987B-5A89CA79EB85/Documents/com.outlier.lang//xxxtesta
 Jan 16 15:53:15 USERs-iPhone MyApplication[2388] <Notice>: Failed to 
create directory 
/var/mobile/Containers/Data/Application/F0E3CD3E-F560-4E5A-987B-5A89CA79EB85/Documents/com.outlier.lang/xxxtestb

completely ridiculous. 

On Monday, January 14, 2019 at 11:21:29 AM UTC+8, Shai Almog wrote:
>
> Try:
>
> if(str_outdir.endsWith("/")) {
>     fs.mkdir(str_outdir + str_name);
> } else {
>     fs.mkdir(str_outdir + "/" + str_name);
> }
>
> Also check that str_name doesn't include / within it. You can test both in 
> the simulator but failure will probably only show on the device as it's 
> more sensitive to these nuances.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/dc3bdda3-b732-442d-bf67-98d4369f5684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to