1,146 questions
1 vote
1 answer
62 views
Why are these other extensions included in my Browser dialog (HTML)?
<!-- Browse button --> <div class="input-group-append"> <label class="btn btn-outline-secondary mb-0"> Browse <input type="file" id="...
0 votes
1 answer
295 views
How to exclude files without extensions in vs code?
I'm trying to configure VS Code to exclude all files without an extension (eg Linux executables) from the file explorer. I know about using files.exclude, but I can't find a pattern that correctly ...
0 votes
0 answers
94 views
Why does the file.type property return an empty string for a custom file extension with JSON content?
I am saving a file with a custom extension, let's say it's .abcd. The content of the file is JSON. When I write the file, I set its content type to application/json. I can see this in the "...
2 votes
1 answer
269 views
Why does code completion not work for ".tpp" file extension in Neovim?
I have installed nvim-lspconfig and nvim-cmp plugins for Neovim. A code completion with ccls works pretty well for .cpp and .hpp file extensions. I want to make code completion to also work with .tpp ...
0 votes
1 answer
449 views
How to make Neovim associate ".tpp" file extension with C++ files?
I would like Neovim to associate files with .tpp extension with C++. How can I achieve this? P.S.: I would like nvim-lspconfig and nvim-cmp Neovim plugins to also associate this file extension with C++...
0 votes
0 answers
29 views
Is a file with two extensions idiomatic if it is metadata related to another existing file?
I have a program which generates and caches JSON metadata for files of multiple media types (e.g. .jpeg, .png). Is it idiomatic to include the original file extension in the name of the metadata file ...
0 votes
1 answer
50 views
How to know file address when I open it with a .exe file converted from .py file?
I have a .exe file(converted from .py file) and .teui file. When I click .teui file and choose open with .exe file, then I want .exe file return address of .teui file. (select and right-click file -&...
0 votes
1 answer
83 views
Hide Extension-less C++ Complied Executables on Mac CLion
I'm using CLion to practice competitive programming, so each cpp source file is compiled on its own, without using things like CMake. The problem is, on MacOS, the executables have no extension, so I ...
0 votes
1 answer
205 views
How to extract file extension from filepath field in PostgreSQL?
need to extract file extensions from the file_path column from my PostgreSQL table. kindly help me to achieve to extract the distinct file extensions as list using select query. have table like this ...
1 vote
0 answers
550 views
Convert a `std::filesystem::path` to all lower case [duplicate]
I want to convert a std::filesystem::path to all lowercase so I can find files of a given extension, "dsf". #include <filesystem> #include <iostream> int main() { const std::...
-2 votes
1 answer
145 views
How to detect file open requests from Explorer in Delphi?
My Delphi Alexandria program associates certain file extensions in Registry with the Application's Exename, such that Windows shows the right icon. But I am struggling to get my program to notice a ...
0 votes
0 answers
39 views
How can I make my app accept certain photos file extensions?
I want my app to accept certain image extensions(png, jpg,.....) otherwise, it should show an error message. import UIKit import Photos class ViewController: UIViewController { @IBOutlet var ...
1 vote
1 answer
85 views
Assign filetype to a software by script
Would like to assign certain filetypes to a software by script (preferably by PowerShell or .reg) in Windows 11. This PowerShell-Code worked fine over one year ago: cmd /c "assoc .rhistory = ...
1 vote
0 answers
127 views
Keep Python code safe from execution by Pydoc
This question is related to the question Stop pydoc from running my Python program, except that here I'm not actually trying to document my own code - I'm just trying to use pydoc to look up unrelated ...
0 votes
2 answers
141 views
Making a Chrome extension to read custom file types
I've been working on a compiler for a custom conditional formating language, and I want to be able to open files in my language in Chrome by double-clicking on them in File Explorer (I am on Windows). ...