Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Marsaud Smb2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Marsaud Smb2
Commits
aab04e11
Commit
aab04e11
authored
Jul 12, 2018
by
Julien Fontanet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add name to all API functions
Having `.name` property defined helps for debugging.
parent
c26cd908
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
lib/api/disconnect.js
lib/api/disconnect.js
+1
-1
lib/api/exists.js
lib/api/exists.js
+1
-1
lib/api/mkdir.js
lib/api/mkdir.js
+1
-1
lib/api/readdir.js
lib/api/readdir.js
+1
-1
lib/api/readfile.js
lib/api/readfile.js
+1
-1
lib/api/rename.js
lib/api/rename.js
+1
-1
lib/api/rmdir.js
lib/api/rmdir.js
+1
-1
lib/api/unlink.js
lib/api/unlink.js
+1
-1
lib/api/writefile.js
lib/api/writefile.js
+1
-1
No files found.
lib/api/disconnect.js
View file @
aab04e11
...
...
@@ -9,6 +9,6 @@ var SMB2Connection = require('../tools/smb2-connection');
* - close TCP connection
*
*/
module
.
exports
=
function
()
{
module
.
exports
=
function
disconnect
()
{
SMB2Connection
.
close
(
this
);
};
lib/api/exists.js
View file @
aab04e11
...
...
@@ -12,7 +12,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the file
*
*/
module
.
exports
=
function
(
path
,
cb
)
{
module
.
exports
=
function
exists
(
path
,
cb
)
{
var
connection
=
this
;
SMB2Request
(
'
open
'
,
{
path
:
path
},
connection
,
function
(
err
,
file
)
{
...
...
lib/api/mkdir.js
View file @
aab04e11
...
...
@@ -12,7 +12,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the folder
*
*/
module
.
exports
=
function
(
path
,
mode
,
cb
)
{
module
.
exports
=
function
mkdir
(
path
,
mode
,
cb
)
{
if
(
typeof
mode
==
'
function
'
)
{
cb
=
mode
;
mode
=
'
0777
'
;
...
...
lib/api/readdir.js
View file @
aab04e11
...
...
@@ -14,7 +14,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the directory
*
*/
module
.
exports
=
function
(
path
,
cb
)
{
module
.
exports
=
function
readdir
(
path
,
cb
)
{
var
connection
=
this
;
// SMB2 open directory
...
...
lib/api/readfile.js
View file @
aab04e11
...
...
@@ -16,7 +16,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the file
*
*/
module
.
exports
=
function
(
filename
,
options
,
cb
)
{
module
.
exports
=
function
readFile
(
filename
,
options
,
cb
)
{
var
connection
=
this
;
if
(
typeof
options
==
'
function
'
)
{
...
...
lib/api/rename.js
View file @
aab04e11
...
...
@@ -15,7 +15,7 @@ var FILE_OPEN_IF = require('../structures/constants').FILE_OPEN_IF;
* - close the file
*
*/
module
.
exports
=
function
(
oldPath
,
newPath
,
cb
)
{
module
.
exports
=
function
rename
(
oldPath
,
newPath
,
cb
)
{
var
connection
=
this
;
// SMB2 open the folder / file
...
...
lib/api/rmdir.js
View file @
aab04e11
...
...
@@ -15,7 +15,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the folder
*
*/
module
.
exports
=
function
(
path
,
cb
)
{
module
.
exports
=
function
rmdir
(
path
,
cb
)
{
var
connection
=
this
;
connection
.
exists
(
path
,
function
(
err
,
exists
)
{
...
...
lib/api/unlink.js
View file @
aab04e11
...
...
@@ -15,7 +15,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the file
*
*/
module
.
exports
=
function
(
path
,
cb
)
{
module
.
exports
=
function
unlink
(
path
,
cb
)
{
var
connection
=
this
;
connection
.
exists
(
path
,
function
(
err
,
exists
)
{
...
...
lib/api/writefile.js
View file @
aab04e11
...
...
@@ -17,7 +17,7 @@ var SMB2Forge = require('../tools/smb2-forge'),
* - close the file
*
*/
module
.
exports
=
function
(
filename
,
data
,
options
,
cb
)
{
module
.
exports
=
function
writeFile
(
filename
,
data
,
options
,
cb
)
{
if
(
typeof
options
==
'
function
'
)
{
cb
=
options
;
options
=
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment