jbackpack-discussion
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jbackpack-discussion] Restoring a file to location other than origi


From: Valerio Pachera
Subject: Re: [Jbackpack-discussion] Restoring a file to location other than original results in permissions error on Win platforms,
Date: Wed, 27 Nov 2013 13:53:06 +0100

I think I found the part of code that is causing the problem.
The file is
src/ch/fhnw/jbackpack/SelectRestoreDirectoryDialog.java

            // check that user can change permissions of this directory
            if (selectedDirectory.setWritable(false)) {
                selectedDirectory.setWritable(true);
            } else {
                String errorMessage = BUNDLE.getString(
                        "Error_Restore_Directory_Unmodifiable");
                errorMessage = MessageFormat.format(
                        errorMessage, selectedDirectory);
                showError(errorMessage);
                return;
            }

It would be good enough to comment this part and recompile the program.
I have no experience in that.

May anybody help?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]