About 2,620,000 results
Open links in new tab
  1. Difference between forward slash (/) and backslash (\) in file path

    Jan 31, 2024 · I was wondering about the difference between \\ and / in file paths. I have noticed that sometimes a path contains /and sometimes it is with \\. It would be great if anyone can explain when …

  2. What does \\\\?\\ mean when prepended to a file path

    These prefixes are not used as part of the path itself. They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent …

  3. coding style - Python: variable naming convention - file, path ...

    Apr 19, 2018 · Python: variable naming convention - file, path, filepath, file_path Asked 7 years, 7 months ago Modified 3 years, 2 months ago Viewed 12k times

  4. How do I check whether a file exists without exceptions?

    How do I check whether a file exists or not, without using the try statement?

  5. Meaning of a double star (**) in a file path - Stack Overflow

    Oct 3, 2017 · The double asterisks are placeholders or instructions to the recursive interpreter to go through the files and folders. It is a simple, recursive wildcard while only one asterisk means all …

  6. string - How do I get the filename without the extension from a path in ...

    Why do you resolve() the path? Is it really possible to get a path to a file and not have the filename be a part of the path without that? This means that if you're give a path to symlink, you'll return the …

  7. Why does the 260 character path length limit exist in Windows?

    Dec 10, 2009 · A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum …

  8. How should I write a Windows path in a Python string literal?

    Apr 9, 2023 · Path takes a path-like string and adjusts everything for the current OS, either Windows or Linux. For example, on Linux it would convert all backslashes to forward slashes, and on Windows it …

  9. filenames - What does the ~ mean in a file path? - Super User

    What does the ~ mean in an absolute file path? I see this in the output of things like build scripts but the path does not exist.

  10. How do I get the full path of the current file's directory?

    2812 The special variable __file__ contains the path to the current file. From that we can get the directory using either pathlib or the os.path module. Python 3 For the directory of the script being run: