Comments (4)
Could you please describe what are the benefits / issues you're trying to add/resolve?
The most popular way how to extract file ext is:
>>> import os
>>> filename, file_extension = os.path.splitext('/path/to/somefile.ext')
>>> filename
'/path/to/somefile'
>>> file_extension
'.ext'
From stackoverflow.
from tinyweb.
The only benefit here is readability based on fact you are not using this extension to access any file.
It is really minor issue - you can drop it easily :-)
from tinyweb.
Could you please update your PR with unittests / solve conflicts to get this issue resolved?
from tinyweb.
Closing due to no activity, feel free to reopen.
from tinyweb.
Related Issues (20)
- chunk mode send json HOT 4
- UTF-8 char garbled in json response by frontend HOT 2
- LmacRxblk:1 error HOT 2
- How to run (in proper way) second function in parallel? HOT 5
- Connection closed without response on nonexistent paths HOT 18
- Kernel Panic serving anything if local MicroDNSSrv used HOT 8
- No CaptivePortal support? HOT 6
- Still can't get captive portals working :( HOT 2
- Force push response content out? HOT 4
- Updated tinyweb for new uasyncio? HOT 10
- Task exception wasn't retrieved HOT 1
- Question: tinyweb on esp8266 compared to other frameworks HOT 3
- Disable CodeFactor.io warning HOT 1
- tinyweb.mpy not working HOT 1
- Some functions are not working
- Build flash file for ESP01 1M ? HOT 1
- Regarding blinking LED HOT 1
- websockets HOT 6
- shutdown() tries to access non-existent attribute "cancel" on uasyncio module HOT 2
- `read_headers` should be case-insensitive on keys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyweb.