Skip to content

Conversation

@TQZhang04
Copy link
Contributor

No description provided.

TQ Zhang added 2 commits January 10, 2025 18:57
Recursively searches nested folders for audio files to process. Extension and files to skip can be specified.
@TQZhang04 TQZhang04 linked an issue Jan 11, 2025 that may be closed by this pull request
@TQZhang04

This comment was marked as outdated.

TQ Zhang added 3 commits January 12, 2025 22:03
also cast ignored list to set to reduce time complexity
feat: allowed for entire directories to be ignored
Changed isolate() to take the filepath and split it to keep the FOLDER column consistent.
@TQZhang04 TQZhang04 requested a review from ntlhui January 13, 2025 20:09
root_dir = os.path.abspath(root_dir)
root_dir = Path(root_dir)
# get all files
audio_files = root_dir.rglob(f"*{extension}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intended to be case sensitive or case insensitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File names/directories and extensions are all intentionally case-sensitive right now. Any reason this shouldn't be the case?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind that Unix filesystems are case-sensitive, while Windows filesystems are case-insensitive. Thus, you may have unintended behavior on Windows vs Unix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, what suggestions do you have?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason for this to be case-sensitive. .wav and .WAV extensions mean the same, even under Unix.

Copy link
Contributor Author

@TQZhang04 TQZhang04 Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I think the given root dir should be kept case-sensitive, though?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on how much of a mess you want Unix behavior to be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for nested file structures

3 participants