Recently it was recommended that os.path.expanduser(“~/.foldername”) be used to access and write to a directory. After scanning some os.path tutorials, I couldn’t find anything explaining the function of the period after a forward slash. Was the period intended as part of the directory name?
What is the purpose of a period directly after a forward slash?
680 Views Asked by ballade4op52 At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in UNIX
- passing text with \n as one argument in shell
- C std library don't appear to be linked in object file
- How to split a directory into parts without compressing or archiving?
- Momentjs get current GMT unix time
- Timing packets on a traffic server
- man pages for c variable types
- Blocking in pthread_join()
- PWX-00001 Error opening repository "dtlmsg.txt". RCs = 268/150/2
- Unix c program to calculate pi using threads
- How to perform parallel processes for different groups in a folder?
- Set aliases globally for all users
- wmic csproduct get UUID equivalent for Unix and Mac?
- Send alert for 80% threshold comparing two values from Disk partition
- Unix - Tail Utility would open the file or not
- Redirect Outward of unix os commands to html page
Related Questions in FILESYSTEMS
- What kernel level functions are called when we perform write in ext3 file system?
- How to save a file to desired location in c++?
- MongoDB over Traditional File Based System
- How to reliably detect that an atomic move of a directory failed because the target already exists
- Meteor - Create a new folder in the public directory on account creation
- Storing images in MSSQL vs Disk
- Why segment files into chunks for HTTP streaming?
- Difference between stdout and /dev/stdout
- find and remove all closed files that are not modified in some-time
- TypeScript + Node.js FileSystem issue
- Scan folders with non English letters in a given directory
- unknown field 'ioctl' specified in initializer
- how can i encrypt every file with a different key using encFS
- How is a file loaded in the FAT file system?
- Ext.device.filesystem.FileEntry.read() - type: "text" returns blank file
Related Questions in OS.PATH
- double backslash python os.path.abspath
- Python how to join cross platform paths
- Python creating subdirectory with user input
- Python 3: search subdirectories for a file
- What is the purpose of a period directly after a forward slash?
- os.makedirs generates exception when a file exists with the same name in Python 2.7.10
- Python 3: make a function go through all possible arguments without generating any errors
- Formatting filepaths using variables on in os.path
- os.path.join fails with "TypeError: object of type 'LocalPath' has no len()"
- Quickly checking to see if a large amount of files exist in python
- Incorrect Django path to templates folder in settings.py
- Python os.path.isfile returns the wrong answer if I create a file right after that
- Pandas pd.merge "TypeError: string indices must be integers, not str"
- Python 3 - Copy files if they do not exist in destination folder
- merge paths with python, from /a/b/c + c/d to /a/b/c/d
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, it is intended as part of the directory name.
On some file systems, a dot before a file or directory name denotes that the file or directory should be hidden from the user's view in the GUI.
For example, if you save a folder called
.foldernamein your user directory on most Unix-based operating systems and go to find it using a file explorer, you won't see it there.This can be circumvented on Mac OS and many Linux distributions using various techniques for the operating system.