mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Use non-hidden filename for directory write test
This commit is contained in:
@@ -57,7 +57,7 @@ class StockManager:
|
||||
else:
|
||||
# Directory exists, check if writable by trying to create a temp file
|
||||
try:
|
||||
temp_file_path = os.path.join(self.logo_dir, ".write_test")
|
||||
temp_file_path = os.path.join(self.logo_dir, "write_test_py.tmp")
|
||||
with open(temp_file_path, 'w') as f:
|
||||
f.write('test')
|
||||
os.remove(temp_file_path)
|
||||
|
||||
Reference in New Issue
Block a user