If you AXL_Add() a file with a destination path that doesn't exist, it's totally fine, since AXL will automatically create the path for you in AXL_Dispatch(). So if you do:
AXL_Dispatch() will mkdir /tmp/dir1/dir2/dir3/ before copying the file.
This is an issue with the BB API, since it checks to see if the destination path exists in BB_AddFiles() (a.k.a AXL_Add()). A possible solution to this to do both the BB_AddFiles() of the entire file list, and the BB_StartTransfer() in axl_async_start_bbapi() (a.k.a AXL_Dispatch()). That way we guarantee the directories are there before we start copying the files.
If you
AXL_Add()
a file with a destination path that doesn't exist, it's totally fine, since AXL will automatically create the path for you inAXL_Dispatch()
. So if you do:AXL_Add(id, "/tmp/myfile", "/tmp/dir1/dir2/dir3/myfile")
AXL_Dispatch()
will mkdir/tmp/dir1/dir2/dir3/
before copying the file.This is an issue with the BB API, since it checks to see if the destination path exists in
BB_AddFiles()
(a.k.aAXL_Add()
). A possible solution to this to do both theBB_AddFiles()
of the entire file list, and theBB_StartTransfer()
inaxl_async_start_bbapi()
(a.k.aAXL_Dispatch()
). That way we guarantee the directories are there before we start copying the files.