fix(tsview-s3-columns): append trailing slash to destination key when moving folders to ensure folder destination path

This commit is contained in:
2026-01-28 16:16:26 +00:00
parent fbd6ac83f8
commit 175e9cb691
5 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2026-01-28 - 1.10.2 - fix(tsview-s3-columns)
append trailing slash to destination key when moving folders to ensure folder destination path
- ts_web/elements/tsview-s3-columns.ts: add '/' to destKey when moveSource.isFolder to preserve folder semantics
- Prevents folder moves from being treated as object moves by ensuring destination key ends with a slash
- Change affects logic that calls apiService.movePrefix for folder moves
## 2026-01-28 - 1.10.1 - fix(playwright-mcp)
remove Playwright-generated snapshot images to avoid committing autogenerated test artifacts and reduce repository size

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsview',
version: '1.10.1',
version: '1.10.2',
description: 'A CLI tool for viewing S3 and MongoDB data with a web UI'
}

File diff suppressed because one or more lines are too long

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsview',
version: '1.10.1',
version: '1.10.2',
description: 'A CLI tool for viewing S3 and MongoDB data with a web UI'
}

View File

@@ -1239,7 +1239,7 @@ export class TsviewS3Columns extends DeesElement {
try {
const sourceName = getFileName(this.moveSource.key);
const destKey = this.moveDestination + sourceName;
const destKey = this.moveDestination + sourceName + (this.moveSource.isFolder ? '/' : '');
let result: { success: boolean; error?: string };
if (this.moveSource.isFolder) {