Inconsistent file extension handling for .txt files
- Vorherrschende Sprache
- Python
- Sterne
- 1
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Description:
If a user forgets to add .txt while reading, deleting, or creating a file, the program may not behave as expected. This leads to errors or duplicate files.
_Hint: Think about how the program could handle input when users enter a file name with or without the .txt extension._
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Look for functions that read, delete, or create files, likely in the main script or a file handling module. The hint suggests normalizing file names to ensure .txt is appended when missing. Start by searching for file operations like open(), os.remove(), or os.path.exists(). Write a helper function to add .txt if absent, then apply it consistently. Test by running the program with and without the extension.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 65/100