mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
Use non-hidden filename for directory write test
This commit is contained in:
@@ -57,7 +57,7 @@ class StockManager:
|
|||||||
else:
|
else:
|
||||||
# Directory exists, check if writable by trying to create a temp file
|
# Directory exists, check if writable by trying to create a temp file
|
||||||
try:
|
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:
|
with open(temp_file_path, 'w') as f:
|
||||||
f.write('test')
|
f.write('test')
|
||||||
os.remove(temp_file_path)
|
os.remove(temp_file_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user