

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to get the maximum file name length limit using Python?
On some platforms, the maximum filename length varies according to the location on the disk. If you run UNIX with different filesystems mounted in various locations on your directory tree, you might see the following values for the maximum filename length in those locations:
>>> import statvfs, os >>> os.statvfs('/')[statvfs.F_NAMEMAX] 4032 >>> os.statvfs('/boot')[statvfs.F_NAMEMAX] 255
- Related Questions & Answers
- How to limit input text length using CSS3?
- How to get only the file name using find command on Linux?
- How to generate secure temporary file name using Python?
- Maximum Table name length in SAP HANA
- Maximum Column name length in SAP HANA
- How to limit the length of regression line using ggplot2 in R?
- How to create a unique temporary file name using Python?
- C# program to get the file name in C#
- Python How to get function name?
- Get file extension name in Java
- How to get stat of a file using Python?
- How to get a file system information using Python?
- How to get the file extension using PowerShell?
- How to get file name from a path in PHP?
- What is the maximum length of a table name in MySQL?
Advertisements