Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
82cf40ac
Commit
82cf40ac
authored
Sep 30, 2021
by
Harald Sitter
🏳️🌈
Browse files
log more flags
they can change behavior quite a bit
parent
e5c2f63e
Changes
2
Hide whitespace changes
Inline
Side-by-side
smb/kio_smb_dir.cpp
View file @
82cf40ac
...
...
@@ -35,7 +35,7 @@ void SMBSlave::copy(const QUrl &src, const QUrl &dst, int permissions, KIO::JobF
void
SMBSlave
::
smbCopy
(
const
QUrl
&
ksrc
,
const
QUrl
&
kdst
,
int
permissions
,
KIO
::
JobFlags
flags
)
{
qCDebug
(
KIO_SMB_LOG
)
<<
"SMBSlave::copy with src = "
<<
ksrc
<<
"and dest = "
<<
kdst
;
qCDebug
(
KIO_SMB_LOG
)
<<
"SMBSlave::copy with src = "
<<
ksrc
<<
"and dest = "
<<
kdst
<<
flags
;
// setup urls
SMBUrl
src
=
ksrc
;
...
...
@@ -168,7 +168,7 @@ void SMBSlave::smbCopy(const QUrl &ksrc, const QUrl &kdst, int permissions, KIO:
void
SMBSlave
::
smbCopyGet
(
const
QUrl
&
ksrc
,
const
QUrl
&
kdst
,
int
permissions
,
KIO
::
JobFlags
flags
)
{
qCDebug
(
KIO_SMB_LOG
)
<<
"src = "
<<
ksrc
<<
", dest = "
<<
kdst
;
qCDebug
(
KIO_SMB_LOG
)
<<
"src = "
<<
ksrc
<<
", dest = "
<<
kdst
<<
flags
;
// check if destination is ok ...
const
QString
dstFile
=
kdst
.
toLocalFile
();
...
...
@@ -386,7 +386,7 @@ void SMBSlave::smbCopyGet(const QUrl &ksrc, const QUrl &kdst, int permissions, K
void
SMBSlave
::
smbCopyPut
(
const
QUrl
&
ksrc
,
const
QUrl
&
kdst
,
int
permissions
,
KIO
::
JobFlags
flags
)
{
qCDebug
(
KIO_SMB_LOG
)
<<
"src = "
<<
ksrc
<<
", dest = "
<<
kdst
;
qCDebug
(
KIO_SMB_LOG
)
<<
"src = "
<<
ksrc
<<
", dest = "
<<
kdst
<<
flags
;
QFile
srcFile
(
ksrc
.
toLocalFile
());
const
QFileInfo
srcInfo
(
srcFile
);
...
...
@@ -663,7 +663,7 @@ void SMBSlave::rename(const QUrl &ksrc, const QUrl &kdest, KIO::JobFlags flags)
int
errNum
=
0
;
int
retVal
=
0
;
qCDebug
(
KIO_SMB_LOG
)
<<
"old name = "
<<
ksrc
<<
", new name = "
<<
kdest
;
qCDebug
(
KIO_SMB_LOG
)
<<
"old name = "
<<
ksrc
<<
", new name = "
<<
kdest
<<
flags
;
src
=
ksrc
;
dst
=
kdest
;
...
...
smb/kio_smb_file.cpp
View file @
82cf40ac
...
...
@@ -306,7 +306,7 @@ void SMBSlave::put(const QUrl &kurl, int permissions, KIO::JobFlags flags)
mode_t
mode
;
QByteArray
filedata
;
qCDebug
(
KIO_SMB_LOG
)
<<
kurl
;
qCDebug
(
KIO_SMB_LOG
)
<<
kurl
<<
flags
;
errNum
=
cache_stat
(
m_current_url
,
&
st
);
exists
=
(
errNum
==
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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