Comments (6)
Edit:
FILE_RENAME_INFORMATION_TYPE_1: Used for 32-bit local clients and SMB1.
FILE_RENAME_INFORMATION_TYPE_2: Used for 64-bit local clients and SMB2.
from smblibrary.
I see - Fixed now.
Note that my earlier comment was incorrect,
FILE_RENAME_INFORMATION_TYPE_1: Used for 32-bit local clients and SMB1.
FILE_RENAME_INFORMATION_TYPE_2: Used for 64-bit local clients and SMB2.
I did add a conversion from type2 to type1 in SMB1FileStore for convenience.
from smblibrary.
The problem is that SetFileInformation is not implemented by SMB1FileStore :
public NTStatus SetFileInformation(object handle, FileInformation information)
{
throw new NotImplementedException();
}
from smblibrary.
Is there an example of how to call this?
I see this code here:
But its just called rename and I am looking to move a file from one directory to another (same file share). Would this rename work for that? What are example paths that should be used? Full paths?
from smblibrary.
Yes, rename and move are the same. path should be relative to the share.
from smblibrary.
Thanks it worked for me!
from smblibrary.
Related Issues (20)
- Copying a file while having an STATUS_SHARING_VIOLATION HOT 1
- UnobservedTaskException after Client.Disconnect() HOT 5
- SMBServer.exe HOT 1
- IsLoggedIn Getter HOT 1
- Exception thrown by .net Framework. HOT 7
- How to Access a File With in the Sub Folders Using SMB2Client
- [Question] FileSystemWatcher-like support HOT 1
- tree connect returning null HOT 1
- SMB3 client on samba server HOT 4
- Unable to access file in subdirectory HOT 1
- SMB1Client Connect method not timing out HOT 4
- UnobservedTaskException's caused by Smb2Client.Disconnect method HOT 9
- NullReferenceException crashes the application HOT 3
- STATUS_LOGON_FAILURE HOT 12
- SMBLibrary may crash the entire process HOT 9
- Please make it possible to connect using SMBClients providing custom ports. HOT 3
- LargeMTU unavailable HOT 2
- How to create a simple SMB1 server? HOT 6
- SMB(2) Move File Only On Server ? HOT 1
- List Folders only HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smblibrary.