| View previous topic :: View next topic |
| Author |
Message |
TigersWay
Joined: 16 Feb 2010 Posts: 18
|
Posted: Sat Nov 26, 2011 2:55 am Post subject: Target Folder already exists and is not empty |
|
|
Hi,
I am facing an annoying trouble. I have different "class projects" which have to be independent on dev side but tested together. When I try to "Copy files from Sources Folder to another location" from the 2nd (etc) one, I am stopped with this message: "Target Folder already exists and is not empty".
If I understand the warning, the impossibility to go further leave me clueless!
Any way to bypass that control? Or any other idea which could help?
Thanks |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Sat Nov 26, 2011 9:11 am Post subject: Target Folder already exists and is not empty |
|
|
Hi,
Dne 26.11.2011 03:56, TigersWay napsal(a):
| Quote: | I am stopped with this message: "Target Folder already exists and is not empty".
|
it is intentional to avoid file overwriting. If it does not work for
you, feel free to submit an issue against php/Project [1] with your
scenario (perhaps yes/no dialog could be added there).
Tomas
[1] http://netbeans.org/community/issues.html |
|
| Back to top |
|
 |
TigersWay
Joined: 16 Feb 2010 Posts: 18
|
|
| Back to top |
|
 |
jonny2
Joined: 26 Nov 2011 Posts: 2
|
Posted: Sat Nov 26, 2011 2:48 pm Post subject: |
|
|
| Go it.. |
|
| Back to top |
|
 |
jonny2
Joined: 26 Nov 2011 Posts: 2
|
Posted: Sat Nov 26, 2011 2:53 pm Post subject: |
|
|
| Go it.. |
|
| Back to top |
|
 |
mcosens
Joined: 27 Jun 2012 Posts: 1
|
Posted: Wed Jun 27, 2012 3:48 pm Post subject: |
|
|
The workaround I used to solve this issue:
1: Create a dummy dir on your web server to use during project creation.
2: Close NetBeans
3: Edit <your project>/nbproject/private/private.properties
3.1: change copy.src.target=<the real test path>
3.2: change url=<the real test url>
4: Open NetBeans and the project should point where you want it to.
Sorry to raise the dead. I really appreciate the work that went into the plug-in but I ran into this same problem and it interfered with my ability to do my job. Warning me that I am may overwrite files is fine but stopping me from doing it when I its what I want to do is not fine. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Fri Jun 29, 2012 4:51 am Post subject: Target Folder already exists and is not empty |
|
|
Hi,
Dne 27.6.2012 17:48, mcosens napsal(a):
| Quote: | Warning me that I am may overwrite files is fine but stopping me from doing it when I its what I want to do is not fine.
|
the "problem" here is that in order to be up-to-date, NetBeans needs to
copy _all_ source files to the target directory (all existing files
there are overwritten). However, I am going to allow choosing not empty
directory, see [1].
Tomas
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=214888 |
|
| Back to top |
|
 |
RougeWarrior
Joined: 03 Aug 2012 Posts: 1
|
Posted: Fri Aug 03, 2012 12:19 pm Post subject: Folder already exists and is not empty-still not fixed |
|
|
I just downloaded the the newest updates for the NetBeans IDE. The problem "Folder already exists and is not empty" is still there.
This project (and their associated directories) was working fine, but now when the project opens it looks and sees a non empty folder and will not let me continue. Plus I am also getting the error "The file cannot safely be opened with encoding UTF-8. Do you want to continue?" I don't know if the two are related, but something has change in my IDE or my configuration. The empty directory issue also happens with the other projects in my workspace. My only solution is to create the same directory inside the same directory, start another directory, shut down and follow the previously stated workaround. Although, being that the IDE seems to be checking for non-empty directories when opening might not work.
As previously stated, to warn about a potential problem is great, to save me from myself not so great.
Thanks for all the great work. |
|
| Back to top |
|
 |
paolosca
Joined: 09 Sep 2010 Posts: 384
|
Posted: Sat Aug 04, 2012 9:23 am Post subject: Target Folder already exists and is not empty |
|
|
Hi,
On 08/03/2012 08:19 PM, RougeWarrior wrote:
| Quote: | Plus I am also getting the error "The file cannot safely be opened with encoding UTF-8. Do you want to continue?" I don't know if the two are related.
|
I don't think the two are related, the message you receive warns you
that the encoding of the file you are trying to open is different from
the encoding you are using in NetBeans (UTF- .
I don't know what encoding you have on your production server but
working on UTF-8 is the norm nowadays.
Unless you need a special encoding, I suggest you to convert the files
in your project to UTF-8. You can do that using some utility or with a
different editor. I think NetBeans has a plugin to change the encoding
but I never used it.
Beware that opening and saving a file with the wrong encoding will
likely result in messed up characters and there is no way back.
Sometimes I had this issue in a php files which had a few accented
characters, if they are in the comments I normally remove them, if they
are in html code I replace them with the relative html codes (i.e.
à), in strings I convert them in php esc codes (i.e. \xA0).
I do this because files with no special characters (ascii only) are
always valid in all encodings.
Regards,
Paolo |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Mon Aug 06, 2012 4:49 am Post subject: Target Folder already exists and is not empty |
|
|
Hi,
Dne 3.8.2012 14:19, RougeWarrior napsal(a):
| Quote: | I just downloaded the the newest updates for the NetBeans IDE. The problem "Folder already exists and is not empty" is still there.
|
have you reported a bug [1] with detailed description and exact steps to
reproduce? Complaining here is not enough...
Thanks,
Tomas
[1] http://netbeans.org/community/issues.html |
|
| Back to top |
|
 |
kimusubi
Joined: 22 Mar 2012 Posts: 3
|
Posted: Mon Aug 06, 2012 5:43 am Post subject: Target Folder already exists and is not empty |
|
|
Hi Thomas, is this on localhost or on remote. So in both cases - check your /var/www folder or htdocs or what you use of public folder in your host for existing folder with same name of your new project. Sometimes, when you delete old one with same name and Netbeans ask you to delete folder of the project - you have to check it again manually because some times it's remain.
Best
On Mon, Aug 6, 2012 at 7:49 AM, Tomas Mysik <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi,
Dne 3.8.2012 14:19, RougeWarrior napsal(a):
| Quote: | I just downloaded the the newest updates for the NetBeans IDE. The problem "Folder already exists and is not empty" is still there.
|
have you reported a bug [1] with detailed description and exact steps to
reproduce? Complaining here is not enough...
Thanks,
Tomas
[1] http://netbeans.org/community/issues.html
|
--
Best regards
Velko Spasov |
|
| Back to top |
|
 |
JoshuaMadison
Joined: 08 Aug 2012 Posts: 1
|
Posted: Thu Aug 09, 2012 2:25 am Post subject: |
|
|
| Thank you for sharing! |
|
| Back to top |
|
 |
|