File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 33using LabApi . Features . Console ;
44using LabApi . Loader . Features . Paths ;
55using SER . FlagSystem ;
6+ using SER . Helpers ;
7+ using SER . Helpers . Extensions ;
68using SER . ScriptSystem ;
79using SER . ScriptSystem . Structures ;
810
@@ -15,7 +17,13 @@ public static class FileSystem
1517
1618 public static void UpdateScriptPathCollection ( )
1719 {
18- RegisteredScriptPaths = Directory . GetFiles ( DirPath , "*.txt" , SearchOption . AllDirectories ) ;
20+ RegisteredScriptPaths = Directory
21+ . GetFiles ( DirPath , "*.txt" , SearchOption . AllDirectories )
22+ // ignore files with a pound sign at the start
23+ . Where ( path => Path . GetFileName ( path ) . FirstOrDefault ( ) != '#' )
24+ . ToArray ( ) ;
25+
26+ //Log.Signal(RegisteredScriptPaths.JoinStrings(" "));
1927
2028 var duplicates = RegisteredScriptPaths
2129 . Select ( Path . GetFileNameWithoutExtension )
You can’t perform that action at this time.
0 commit comments