apache / apache/netbeans

"Copy files from Source Folder to another location" inefficient

Open
#6,405 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 18

### What happened

The feature "Copy files from Source Folder to another location" in project always deletes the file before the new file is written.
This is usally not a big problem, if the target location is on the local computer. But if it is a remote system, e.g. webdav, nfs, .. this causes extra trouble.
In my case, creation of new files is forbidden, but changing existing ones is allowed.

If the feature sync on save to sftp is used, it only gets written (STORE) operation, there is no delete operation before hand.

My current workaround is to sync it via remote sftp to the local pc which is connected via davfs. Would be easier, if the delete operation does not happen.

### How to reproduce

_No response_

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

mageia linux 9

### JDK

OpenJDK Runtime Environment 21.9 (build 17.0.7+7-LTS)

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of the “Copy files from Source Folder to another location” feature and compare its behavior with sync on save to SFTP. Confirm how remote targets such as WebDAV or NFS are handled. Done means updating an existing target file without deleting it first, while preserving the normal copy behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.