Python Forum
how to check if file path finish on .csv
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to check if file path finish on .csv
#1
Hello guys

I have a simple problem finding how can I check if the file path entered by the user does end in for example with .csv
The user enters the file path for a data file (e.g. 'file/myfolder.csv').
If the file path entered by the user does not end in 'csv' then error should be displayed otherwise it should return the path
Reply


Messages In This Thread
how to check if file path finish on .csv - by danlopek14q - Apr-03-2021, 03:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Could someone help me finish this ASAP JimmyDricks 7 2,287 Dec-23-2021, 10:30 AM
Last Post: Larz60+
  Need help to finish the hat on the snowman in this Python drawing soowoosamuel 1 3,399 Apr-10-2019, 06:31 AM
Last Post: j.crater
  How to check an array exist in a file using Python fitrisibarani 17 6,734 Feb-27-2019, 04:16 PM
Last Post: ichabod801
  Can Anyone Finish this off FeaRoNz 5 4,008 Mar-25-2017, 10:12 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020