Skip to content

Commit

Permalink
use platform-specific path segment separator
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Jan 19, 2025
1 parent 307eeaf commit eb366cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/FolderWatcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { LichessRound } from '../types';
import { getIndividualGamePgns, getMultiGamePgns } from '../upload';
import { computed } from 'vue';
import debounce from 'debounce';
import { sep } from '@tauri-apps/api/path';
const logs = useLogStore();
const status = useStatusStore();
Expand Down Expand Up @@ -88,7 +89,7 @@ function handleFolderChange(event: WatchEvent): void {
const toUpload = multiOrSingleFilter(modifiedFiles);
if (toUpload.length === 0) return;
logs.info(`Modified: ${toUpload.map(file => file.split('/').pop()).join(', ')}`);
logs.info(`Modified: ${toUpload.map(file => file.split(sep()).pop()).join(', ')}`);
status.setRoundContainsAtLeastOnePgn(props.round.round.id);
if (toUpload.find(filename => isMultiGamePgn(filename))) {
Expand Down

0 comments on commit eb366cd

Please sign in to comment.