Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Behavior When Moving Files within Subdirectories via Web Interface #7048

Closed
Lokke opened this issue Apr 6, 2024 · 1 comment
Closed
Labels
bug A part of the software's functionality doesn't work as expected. in progress A workaround, temporary or permanent fix is in progress rolling-release Indicating that the installation experiencing the issue is using the rolling-release version.

Comments

@Lokke
Copy link

Lokke commented Apr 6, 2024

Installation Method

Docker Installation

AzuraCast Release Channel

Rolling Release Channel

Current AzuraCast Version

v0.19.5 Stable • Docker • PHP 8.3

What happened?

Description:

There seems to be an unexpected behaviour when using the web interface to move files, particularly those within subdirectories, while having the filter "special:duplicates" set. When moving files located within subdirectories to another directory, the subdirectories themselves are inadvertently moved along with the files, resulting in unexpected directory structures in the destination folder.

Steps to Reproduce:

Access the web interface/media.
Navigate to a "Duplicate Songs".
Select files within (e.g., track1.mp3 and track2.mp3).
Move the selected files to a new folder (e.g., /media/destination/).

Expected Behavior:

After moving the files, the contents of the destination folder (/media/destination/) should only contain the selected files without replicating the subdirectory structure. All files should be directly within the destination folder.

Actual Behavior:

Upon inspection of the destination folder (/web/media/destination/), it's noticed that along with the selected files, the directory structure from the original location is also replicated within the destination folder. This leads to unexpected subdirectories within the destination folder, such as /media/destination/FOLDER/track1.mp3 and /media/destination/FOLDER/track2.mp3.

Additional Information:

This behavior could potentially confuse users, as it deviates from the expected behavior and complicates file organization within the destination folder. To enhance user experience, it would be helpful to either maintain the original directory structure or provide an option to exclude subdirectories when moving files via the web interface.

Please let me know if you need further clarification or additional details to address this issue effectively.

Unbenannt.mp4
@Lokke Lokke added the needs investigation An issue that needs further investigation by a developer to determine the root cause. label Apr 6, 2024
@Vaalyn Vaalyn added the possible bug An issue that could potentially be a bug but which needs further confirmation. label Apr 8, 2024
@BusterNeece BusterNeece added bug A part of the software's functionality doesn't work as expected. in progress A workaround, temporary or permanent fix is in progress rolling-release Indicating that the installation experiencing the issue is using the rolling-release version. and removed possible bug An issue that could potentially be a bug but which needs further confirmation. needs investigation An issue that needs further investigation by a developer to determine the root cause. labels May 15, 2024
@BusterNeece
Copy link
Member

@Lokke Thank you for the report, and sorry for the delay in getting back to it. It's a valid issue indeed, and certainly the intended behavior is that if you're moving files from search results (or other special pages) that it'll dump the files directly into the target directory, not matching the directory structure. This should now be the case in the latest Rolling Release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A part of the software's functionality doesn't work as expected. in progress A workaround, temporary or permanent fix is in progress rolling-release Indicating that the installation experiencing the issue is using the rolling-release version.
Projects
None yet
Development

No branches or pull requests

3 participants