tagged [directory]

How can I calculate an MD5 checksum of a directory?

How can I calculate an MD5 checksum of a directory? I need to calculate a summary MD5 checksum for all files of a particular type (`*.py` for example) placed under a directory and all sub-directories....

1 Nov at 17:54

Move all files in subfolders to another folder

Move all files in subfolders to another folder My source path is `C:\Music\` in which I have hundreds of folders called Album-1, Album-2 etc. What I want to do is create a folder called `Consolidated`...

21 Sep at 12:31

Token cache serialization in MSAL.NET is not working

Token cache serialization in MSAL.NET is not working I am facing some issues when trying to serialize the tokencache, returned from authenticating with MSAL. I would appreciate any help, since i don't...

IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocolValidatedIdToken.Payload.Nonce was not null

IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocolValidatedIdToken.Payload.Nonce was not null I'm attempting to authenticate for Azure AD and Graph for an Intranet (...

Exclude certain file extensions when getting files from a directory

Exclude certain file extensions when getting files from a directory How to certain file type when getting files from a directory? I tried But it seems that this function can only choose the file types...

19 May at 12:48

How to get the current working directory using python 3?

How to get the current working directory using python 3? When I run the following script in IDLE I get output as but when I run from cmd prompt, I get How do I get same result which I got using IDLE ?

Throw "IDX10223: Lifetime validation failed. The token is expired." when working Azure AD with Microsoft.Owin.Security.OpenIdConnect

Throw "IDX10223: Lifetime validation failed. The token is expired." when working Azure AD with Microsoft.Owin.Security.OpenIdConnect I'm integrating the "Microsoft Azure AD" to our Asp.NET web project...

Azure AD v2 roles not included in Access Token

Azure AD v2 roles not included in Access Token I'm using [https://login.microsoftonline.com/.../oauth2/v2.0/token](https://login.microsoftonline.com/.../oauth2/v2.0/token) to authenticate (authorizati...

If a folder does not exist, create it

If a folder does not exist, create it I use a `FileUploader` control in my application. I want to save a file to a specified folder. If this folder does not exist, I want to first create it, and then ...

16 Feb at 15:7

apache mod_rewrite subdomain to dir

apache mod_rewrite subdomain to dir I have 4 servers, and I want to merge them with a domain. For example, what I am doing now: - - [www.example.org](http://www.example.org)- I want to If any one acce...

Using multiple authentication providers in C# .net core

Using multiple authentication providers in C# .net core We had .net core API already authenticating with AzureAd and then a new requirement came to authenticate the same API using Auth0 as well while ...

EF Core Connection to Azure SQL with Managed Identity

EF Core Connection to Azure SQL with Managed Identity I am using EF Core to connect to a Azure SQL Database deployed to Azure App Services. I am using an access token (obtained via the Managed Identit...

Find all CSV files in a directory using Python

Find all CSV files in a directory using Python How can I find all files in directory with the extension .csv in python?

5 Feb at 14:23

Powershell: A positional parameter cannot be found that accepts argument "xxx"

Powershell: A positional parameter cannot be found that accepts argument "xxx" I am trying to understand what this error actually means. So far a search of similar help requests for this error range f...

16 Jan at 16:4

Directory vs DirectoryInfo

Directory vs DirectoryInfo Are they equivalent or alternatives to each other? Is any of them deprecated and if so, which one? Which one is recommended for use in an ASP.NET web application? My aim is ...

17 Dec at 00:9

IDW10201: Neither scope or roles claim was found in the bearer token

IDW10201: Neither scope or roles claim was found in the bearer token I have a ASP.NET Core 3.1 project like this sample: [Sign-in a user with the Microsoft Identity Platform in a WPF Desktop applicati...

CORS error when adding Azure AD authentication

CORS error when adding Azure AD authentication Trying to add Azure AD authentication to an Angular 7 webapp with a .net core 2.1 backend. However, I get the CORS error during the request. "Access to X...

Microsoft Azure: How to create sub directory in a blob container

Microsoft Azure: How to create sub directory in a blob container How to create a sub directory in a blob container for example, in my blob container [http://veda.blob.core.windows.net/document/](http:...

20 Jun at 09:12

Error when using PrincipalContext.ValidateCredentials to authenticate against a Local Machine?

Error when using PrincipalContext.ValidateCredentials to authenticate against a Local Machine? I have a WCF service which contains a `Login` method that validates a username and password against the l...

How to generate JWT Token with IdentityModel Extensions for .NET 5

How to generate JWT Token with IdentityModel Extensions for .NET 5 I am using [IdentityModel Extensions for .NET](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) ...

How to set/change Active Directory user password across domains using C# .NET?

How to set/change Active Directory user password across domains using C# .NET? I have been searching around for quite some time now how to set/change a password and revoke/restore a user but have yet ...

19 Jun at 19:53

How to add 'libs' folder in Android Studio?

How to add 'libs' folder in Android Studio? I need help in creating the 'libs' folder in Android Studio for my project (It is not auto-generated in my project). When I want to create a folder, it give...

23 May at 06:29

Find all files in a folder

Find all files in a folder I am looking to create a program that finds all files of a certain type on my desktop and places them into specific folders, for example, I would have all files with .txt in...

6 May at 19:52

Get a list of all the files in a directory (recursive)

Get a list of all the files in a directory (recursive) I'm trying to get (not print, that's easy) the list of files in a directory and its sub directories. I've tried: I only get the directories. I've...

13 Apr at 06:57

List all files and directories in a directory + subdirectories

List all files and directories in a directory + subdirectories I want to list every file and directory contained in a directory and subdirectories of that directory. If I chose C:\ as the directory, t...