ganado / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
2 stars 0 forks source link

FileSystem.exists() fails when testing a directory in 64 bit Windows 7 #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out tools from svn and build with Windows zip
2. Run EclipseExternalTools.exe against a valid workspace directory.
3. EclipseExternalTools.exe fails saying the workspace directory does not exist.

What is the expected output? What do you see instead?
The program should run to completion correctly. Instead it exits saying 
"workspace directory" does not exists.

What version of the product are you using? On what operating system?
Version 0.4 against 64 bit Windows 7.

Please provide any additional information below.
I deleted all parts of EclipseExternalTools.as that used FileSystem.exists(), 
re-ran ant and ran the executable again and it created the files just fine.

Looking at the C++ source, the test consists of a fp->open() call. I haven't 
delved deep down into what the Platform class does, but typically one can test 
for the existence of a directory in Unix via fopen, but the same cannot be done 
in Windows. One must open it as a directory instead. This may therefore be a 
pointer to the problem.

Original issue reported on code.google.com by davidarnogplus@gmail.com on 24 Feb 2011 at 9:39

GoogleCodeExporter commented 9 years ago
Sorry meant version 0.3, not 0.4 :)

Original comment by davidarnogplus@gmail.com on 24 Feb 2011 at 9:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
good catch

FileSystem.exists() has been copied from File.exists()
I kind of trusted the code "de facto"

if I replace the C++(or even the AS3) by a `access( "filename" , F_OK ) == 0`
it should work for everyone

Original comment by zwetan on 25 Feb 2011 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by zwetan on 19 Apr 2011 at 1:50