Skip to content
Advertisement

Is it safe to remove SQLAlchemy-generated extensionless file from my PyCharm project?

I am making a Flask web app in PyCharm on Linux virtual machine. I recently noticed a strange file named ''$'a0406' directly in the project’s directory. Any clues what it might be and if it’s safe to remove?

Here’s the output of pip freeze in case you need it:

JavaScript

Edit: I moved the file to another directory according to Lee’s suggestion. Everything worked anyhowe. I also opened the file and it turned out to be generated by SQLAlchemy. Opening the file in a text editor yields this following bizarre content:

JavaScript

Now the questions are:

  1. Why the strange filename?
  2. Is it safe to remove this file since the content seems corrupt?

Edit: I consider it solved. The file is safe to keep and like Lee said in the comments section, the filename is automatically generated, which would explain why it looks strange to the human eye.

Advertisement

Answer

It’s an auto generated name. It’s easy for code to store and retrieve a file name that’s a random set of alphanumeric symbols.

Generating out the name through some random algorithm is a lot easier than a dev having to manage file names for a random amount of files currently being used.

Advertisement