Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How to create a hidden folder?
How to create a hidden folder? [message #60324] Tue, 28 November 2023 18:31 Go to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

is there a way to create a hidden folder? I can see only DirectoryCreate().

Thanks,
Luigi
Re: How to create a hidden folder? [message #60325 is a reply to message #60324] Wed, 29 November 2023 22:41 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
I found this:

SetFileAttributes(folder_name, FILE_ATTRIBUTE_HIDDEN);

On Windows 10 it works. I hope it works even for linux and MacOs.

Luigi
Re: How to create a hidden folder? [message #60326 is a reply to message #60325] Thu, 30 November 2023 21:08 Go to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
forlano wrote on Wed, 29 November 2023 22:41

SetFileAttributes(folder_name, FILE_ATTRIBUTE_HIDDEN);
On Windows 10 it works. I hope it works even for linux and MacOs.


This is WinAPI, it won't work in Linux.
Just add a dot at the beginning of the filename to hide it in Linux.
Previous Topic: Default comparisons for type derived from Moveable
Next Topic: [FIXED] GLDraw,GLCtrl would be nice to work properly
Goto Forum:
  


Current Time: Sun Apr 28 19:07:04 CEST 2024

Total time taken to generate the page: 0.02331 seconds