Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
06fff14d20ccd7a77ee498859ac0edf7d6a76383...1c7f68a09d236bba3fb5a933de4a3733c5dab116
Commits (3)
BadFilename is now a format string, EmptyDir uses cond-blankline.
· 904b3a58
Rob Swindell
authored
Jun 06, 2021
904b3a58
Don't log an error if after a failure to remove a file, the file doesn't exist
· 1e441eda
Rob Swindell
authored
Jun 06, 2021
1e441eda
Set the file cost value to the file size.
· 1c7f68a0
Rob Swindell
authored
Jun 06, 2021
1c7f68a0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ctrl/text.dat
ctrl/text.dat
+2
-2
exec/binkit.js
exec/binkit.js
+1
-1
exec/postfile.js
exec/postfile.js
+1
-0
No files found.
ctrl/text.dat
View file @
1c7f68a0
...
...
@@ -204,7 +204,7 @@
"\1/\1w\1hSearching current library @ELLIPSIS@\r\n\1q" 166 SearchingAllDirs
"\1w\1hSearching all libraries @ELLIPSIS@\r\n\1q" 167 SearchingAllLibs
"\r\n\1w\1h%u Files Listed.\r\n" 168 NFilesListed
"\
r\n
\1w\1hEmpty directory.\r\n" 169 EmptyDir
"\
1?
\1w\1hEmpty directory.\r\n"
169 EmptyDir
"\1?\1cSearching for files "\ 170 NScanHdr
"uploaded after\1\\ \1h%s\1n\r\n"
"\1?You can't remove files.\r\n" 171 R_RemoveFiles
...
...
@@ -244,7 +244,7 @@
"\r\n\1hThe sysop has been notified.\1n\r\n"
"\r\n%s kilobytes free\r\n\r\n" 201 DiskNBytesFree
"\1_\1y\1hFilename: \1n" 202 Filename
"\
r\n
\1r\1hBad filename
.
\r\n"
203 BadFilename
"\
1/
\1r\1hBad filename
: '%s'
\r\n" 203 BadFilename
"Upload '%s' to Sysop directory" 204 UploadToSysopDirQ
"Upload '%s' to User directory" 205 UploadToUserDirQ
"Upload '%s' to %s\1\\ %s" 206 UploadToCurDirQ
...
...
exec/binkit.js
View file @
1c7f68a0
...
...
@@ -336,7 +336,7 @@ function remove_file(fname)
{
if
(
file_remove
(
fname
))
log
(
LOG_INFO
,
"
Deleted file:
"
+
fname
);
else
else
if
(
file_exists
(
fname
))
log
(
LOG_ERROR
,
"
Error
"
+
errno
+
"
(
"
+
errno_str
+
"
) deleting file:
"
+
fname
);
}
...
...
exec/postfile.js
View file @
1c7f68a0
...
...
@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) {
file
.
from
=
prompt
(
"
Uploader
"
);
}
file
.
cost
=
file_size
(
dir
.
path
+
file
.
name
);
print
(
"
Adding
"
+
file
.
name
+
"
to
"
+
filebase
.
file
);
if
(
filebase
.
add
(
file
))
print
(
format
(
"
File (%s) added successfully to:
"
,
file
.
name
)
+
code
);
...
...