I use Version 10.2 and recognized a strange behavior.
I have a file "
Piano1.wav" in a personal folder
I added this file "
Piano1.wav" to the project with the File Manager.
Now in the file Manager it looks like "
Piano1.wav"
In the windows manager it appears now as "
piano1.wav" in "..project/files"
Now I start the app...
and log the content of the DirAssets with
Files.ListDir(File.DirAssets)
in the logger it apears as "
piano1.wav"
now I check the file with
File.Exists(File.DirAssets,"Piano1.wav")
and this returns
FALSE
now I copy the file to DirInternal and it works!!!
File.Copy(File.DirAssets,FileName,File.DirInternal,FileName)
here is the code
Sub LoadAudioSample(FileName As String)
Log ("filename=" & FileName )
Log(File.ListFiles(File.DirAssets))
Log( File.Exists(File.DirAssets, FileName))
File.Copy(File.DirAssets,FileName,File.DirInternal,FileName)
Log( File.Exists(File.Dirinternal, FileName))
end sub
and her is the logging:
....
** Activity (main) Create, isFirst = true **
filename=Piano1.wav
(ArrayList) [piano0.wav, _assets_map, piano1.wav, bassdrum.wav, snaredrum.wav, layout.bal, piano4.wav, applaus.wav, piano7.wav]
false
true
Is it normal that a file "
Piano1.wav" would appear as "
piano1.wav" ?
and also File.Exists(File.DirAssets,"Piano1.wav") would return FALSE?