Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to handle hard links and symbolic links #248

Closed
ghost opened this issue Jun 9, 2023 · 5 comments
Closed

Add methods to handle hard links and symbolic links #248

ghost opened this issue Jun 9, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2023

Luckily everything seems to be available on C++'s File System library:

https://en.cppreference.com/w/cpp/filesystem

@objeck
Copy link
Owner

objeck commented Jun 9, 2023

Ok, I will look into it.

Objeck uses the C++ 17 library when it works. The implementation is flaky at times. When it is, we use the native POSIX and Win32 equivalents.

@objeck
Copy link
Owner

objeck commented Jun 9, 2023

Please, refer to the following sitewards/modman-php#48. A design goal is not to implement OS-specific functionality. Thoughts?

@ghost
Copy link
Author

ghost commented Jun 9, 2023

Please, refer to the following sitewards/modman-php#48.

Please read that issue again. The key is it needs to be run as Administrator to work. This is not a new knowledge to me. Do you have 7zip on your computer? Open 7zip and play with it File -> Link... and you will quickly realize you need to run it as Administrator in order for this feature to work.

A design goal is not to implement OS-specific functionality. Thoughts?

https://docs.oracle.com/javase/tutorial/essential/io/links.html

@objeck
Copy link
Owner

objeck commented Jun 10, 2023

Added in last commit

@objeck objeck closed this as completed Jun 10, 2023
@ghost
Copy link
Author

ghost commented Jun 11, 2023

@objeck I have not yet tested the newly added methods. It seems I can't keep track of your commits. Btw, from the API doc, it seems you only added support for SymbolicLink but not HardLink, and the SymbolicLink class doesn't have methods to UnLink (safety delete the link without damaging the original file). I have created new issues for this: #253 #254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant