Inheritance: Folders and Files & Liskov Substitution Principle

Based on what I have been reading about the Liskov Substitution Principle, I understand that a square and rectangle class cannot be a part of the same inheritance tree.

I would like to apply these ideas to a Folder and a File, as they commonly exist on disk. Is there a property of one or the other or both which would force a conclusion they too should not be part of the same inheritance tree according to Liskov?

What are some properties we could consider?

  1. The data. Files consist of bytes. However, Folders can be considered to consist of the bytes of the files they contain.

  2. Access to both is defined by permissions

I suppose the property where inheritance breaks down would be one concerning containment. A folder contains files. A file does not.

Sharepoint 2013 – Search files into File Share (content source) with filtering by folders

I crawled content that is on stored on file server (File Share – content source in SharePoint Server) and i get the results in SharePoint search. Everything is fine but i need to have some kind of refiner (i tried many of them but none is working in the way that i need, or it is not working at all) that will have opportunity to choose the folder in which i want to search for some file. Could you give me some suggestions?


Disable Folders in SharePoint Online

G’day Guru’s

It seems it has been a couple of years since this topic was raised, and Sharepoint has changed a lot since then.

I have turned off the ‘New Folder’ option in Advanced Settings for all my SharePoint Document Libraries, however if a user is bringing a document from Onedrive, dragging and dropping folders into libraries or ‘moving’ files, there is still the ability to create a folder. This is really frustrating as I have to keep reminding staff to use the meta-data and views and not create folders. Their old Windows Explorer habits are hard to head off.

I really need another way of preventing folders from being created, preferably at a site collection level.

Thanks for the assist.


Look-up Columns redirecting to folders changed their behaviour

I am using SharePoint Online site.

Some months ago I created a lookup column in document library [A] that referred to another document library [B]. This was the best option I found to be able to refer attachments to each documents in [A], using in [B] a field that is filled only for folders and not for documents.

It was working fine, when clicking on the look-up field, it used to give the possibility of checking the documents directly in a pop-up window or to open the folder in another view.

Since a couple of months this doesn’t work anymore, now when clicking on the look-up field, it opens the “Properties of the folder” (that means just the name of it) and doesn’t show the content of the folder itself.

What’s changed? How can I solve this?

How to create folders to use icons already available with set icon?

I installed the Papirus theme on Xubuntu. My Desktop, Music, Video, and other home folders have their own icons set automatically when changing the theme.

Looking through the icons folder, where I installed Papirus, I can see there’s a folder icon for development. Is there a way I can make is so that it is used for the folder I create, automatically? If not, how can I make it be used for the development folder? Thanks!

Syncing multiple folders with rsync

In the past I used to keep two folders on my laptop synced with their respective equivalents on an external hard disk. I used Grsync and ran it twice whenever I wanted to sync. Now I’m using a more complex distribution of my files and would like to sync more than two folders with their respective external equivalents.

In other words, I want to to sync (one way) say:

/home/user/Folder1 with /extHDD/Folder1 /home/user/Folder2 with /extHDD/Folder2 etc 

Instead of running grsync multiple times, is there a simpler way to

  1. Specify a series of source and destination directories
  2. Have the possibility to check what would be changed before actually syncing.

I’m open to CLI or GUI methods.