[
https://issues.apache.org/jira/browse/IO-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071340#comment-15071340
]
akshay raj gollahalli commented on IO-491:
------------------------------------------
Ok, So I created a JavaFX application and packed it natively for Mac OS X. This
native app is called "JCal.app". It's basically a directory for Mac (as far as
I know). When you open it's content (right click -> Show Contents) and go to
"JCal.app/MacOS/" you will find a file called JCal (which is an Unix Executable
file).
Now lets say that this particular is in my downloads folder and I want to copy
it to Applications folder, I would do the following
FileUtils.copyDirectoryToDirectory(FileUtils.getFile(System.getProperty("user.home")
+ "/Downloads/JCal.app"), FileUtils.getFile("/Applications/"));
which should copy the complete directory (in this case JCal.app) to
Applications folder. Now the directory is getting copied but which this is
happening the Unix executable file gets corrupted and turned in a known text
file with question marks and symbols. This should not happen.
> Copying *.app corrupts the file
> -------------------------------
>
> Key: IO-491
> URL: https://issues.apache.org/jira/browse/IO-491
> Project: Commons IO
> Issue Type: Bug
> Components: Streams/Writers
> Affects Versions: 2.4
> Environment: Mac OS 10.11.2
> Reporter: akshay raj gollahalli
> Priority: Blocker
> Labels: patch
> Fix For: 2.5
>
>
> Hi,
> When ever I try to copy a *.app to a folder, *.app corrupts completely.
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)