Skip to content

Commit

Permalink
Change file path and update index
Browse files Browse the repository at this point in the history
  • Loading branch information
Arilith committed Feb 22, 2025
1 parent 260c91b commit c5c3314
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 11 additions & 3 deletions publish/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
~ Questions? Email: [email protected]
-->

<h1>
404 - Page not found
</h1>
Below you can find the GTFS-RT feed generated by R-OV's InfoPlus database. <br />
The GTFS used is: <a href="http://gtfs.ovapi.nl/nl/gtfs-nl.zip">gtfs-nl.zip</a>. <br />
The feed is updated every 30 seconds. <br />
<ul>
<li>
<a href="./trainUpdates.json">trainUpdates.json</a>
</li>
<li>
<a href="./trainUpdates.pb">trainUpdates.pb</a>
</li>
</ul>
7 changes: 6 additions & 1 deletion src/Models/General/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export class File {
}

public saveSync(): void {
writeFileSync(`${this._path}/${this._name}`, this._contents);
if(!this.path.endsWith('/') && !this._name.startsWith('/')) {
writeFileSync(`${this._path}/${this._name}`, this._contents);
}
else {
writeFileSync(`${this._path}${this._name}`, this._contents);
}
}
}

0 comments on commit c5c3314

Please sign in to comment.